Samba - mass user entry
I need to add about 1000 users to the system (migrating from Novell to Linux). If I have to add them all manually then I guess that's what I'll have to do but it would save me a LOT of work if there was a script or some other method available for adding mass quantities of users. Ideally, something that would grab the names from a text file, add them to the system and give them a temp password. I have searched google and gone back quite a ways in the list archives and haven't been able to find anything. Any help would be greatly appreciated. -- -Allen -------------- Allen Seelye "DeadTOm" Aseelye@blackfoot.net ICQ# 8286205
Tuesday 17 June at 10:13am, Allen Seelye wrote:
I need to add about 1000 users to the system (migrating from Novell to Linux). If I have to add them all manually then I guess that's what I'll have to do but it would save me a LOT of work if there was a script or some other method available for adding mass quantities of users. Ideally, something that would grab the names from a text file, add them to the system and give them a temp password. I have searched google and gone back quite a ways in the list archives and haven't been able to find anything. Any help would be greatly appreciated.
Webmin is your answer. Here is a quote from the "Add users from a batch file" tab: This form allows you to create, modify or delete many users at once from an uploaded or local text file. Each line in the file specifies one action to take, depending on its first field. The line formats are : create:username:passwd:uid:gid:realname:homedir:shell:min:max:warn:inactive:expire modify:oldusername:username:passwd:uid:gid:realname:homedir:shell:min:max:warn:inactive:expire delete:username In create lines, if the uid field is left empty, Webmin will assign a UID automatically. If the gid field is empty, Webmin will create a new group with the same name as the user. The username, homedir and shell fields must be supplied for every user - all other fields are allowed to be empty. If the passwd field is blank, no password will be assigned for the user. If it contains just the letter x, the account will be locked. Otherwise, the text in the field will be taken as the cleartext password and encrypted. In modify lines, an empty field will be taken to mean that the corresponding user attribute is not to be modified. Webmin can be found on the 8.2 install CDs or at http://www.webmin.com. Jim Cunning
participants (2)
-
Allen Seelye
-
Jim Cunning