Quote:
To avoid such disasters, i'd suggest to use these tools (as root obviously, and with care):
- useradd
- userdel
- usermod
- groupadd
- groupdel
- groupmod
I would suggest not to use these tools, but in fact i do not even have to - they do not exist in AIX systems, only in Linux systems. Please take the forum you are posting to into account.
Quote:
Read their respective --help output.
Or go GUI either way system-config-users.
Same here. AIX tools do not have any options introduced with a double dash "--" and
system-config-users simply doesn't exist.
To the problem:
A UNIX system identifies users by their UID, which is a number. When the system displays a user name instead of the number (like "root" instead of "0") it is because it translated the number first using "/etc/passwd" as translating table. Entries there are used from top to bottom. You can easily test this: create two users, "a" and "b" and modify the "/etc/passwd" so that both have the same UID. Now create a file and give the ownership to one of these accounts. Do a
ls -l and you will see the first of the two users in "/etc/passwd" as owner. Now edit "/etc/passwd" and make the other entry the first. A
ls -l will now show the other user (the one now coming first) as the owner.
If you do not exactly know what to do you should use the
mkuser utility to create users, which makes all the necessary entries in "/etc/passwd", "/etc/security/passwd", "/etc/limits", etc.. You can change the UID later for the created account by modifying "/etc/passwd". Notice, though, that the
id command and similar tools relying on "/etc/passwd" will identify this account as "root", for reasons stated above.
I hope this helps.
bakunin