jbossas/jboss-as — pull request #2067 by goldmann (2012-04-17 14:11:15+00:00)
Title: [AS7-4536] add-user.sh mangles permissions of mgmt-users.properties

This fixes https://issues.jboss.org/browse/AS7-4536

Some notes:

1. Instead of renaming the file - I copy it, this preserves the initial permissions on the source file
2. I'm strictly changing the permissions on the backup file to 600

In general - **I don't like the idea of backup files for properties**, as I feel they're unnecessary here. This makes it difficult to use, when executing `add-user.sh` as `root`, and later as the regular file owner. This will create a backup file with root having access to it, but the regular user won't get access.