This is a discussion on mkuser Question within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello everyone! I'm working on a script that uses mkuser to add user ID's in batch on an AIX ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello everyone! I'm working on a script that uses mkuser to add user ID's in batch on an AIX 5.1 system, and I need to have all of the user accounts' UID's start at 200 (don't ask me, ask management). I know you can specify the UID in the mkuser command, but I would rather let AIX assign them so if ID's get deleted, the UID can be reused. Is there a way to do this in a script? Would it involve modifying the /etc/security/.ids file somehow? Thanks in advance! |
| |||
| In article <ea473f2f.0402180817.77e8e915@posting.google.com >, Test wrote: > Hello everyone! > > I'm working on a script that uses mkuser to add user ID's in batch on > an AIX 5.1 system, and I need to have all of the user accounts' UID's > start at 200 (don't ask me, ask management). > > I know you can specify the UID in the mkuser command, but I would > rather let AIX assign them so if ID's get deleted, the UID can be > reused. Is there a way to do this in a script? Would it involve > modifying the /etc/security/.ids file somehow? > > Thanks in advance! What about creating a dummy account at 199, running your script, then removing the dummy account? Mike |
| ||||
| The UIDs less than 500 are privilleged users. It is not good idea to assign large amount of users' ID < 500. The command phrase will create a account with specified ID. mkuser id=$id $name Create a plain text file that a username per line. Then ... read $name id=`expr $id + 1` # Be ware of spaces. mkuser id=$id $name I don't know how the AIX does, but Linux would not use the IDs < 500 by default. Good Luck Camp cademair@yahoo.com (Test) wrote in message news:<ea473f2f.0402180817.77e8e915@posting.google. com>... > Hello everyone! > > I'm working on a script that uses mkuser to add user ID's in batch on > an AIX 5.1 system, and I need to have all of the user accounts' UID's > start at 200 (don't ask me, ask management). > > I know you can specify the UID in the mkuser command, but I would > rather let AIX assign them so if ID's get deleted, the UID can be > reused. Is there a way to do this in a script? Would it involve > modifying the /etc/security/.ids file somehow? > > Thanks in advance! |
| Thread Tools | |
| Display Modes | |
|
|