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
That is exactly what I need. As far as adding them to samba I can probably come up with a script for that. Thanks guys! -Allen ---------------------------- Allen Seelye "DeadTOm" Aseelye@blackfoot.net ICQ# 8286205 http://www.geocities.com/alleninmt
That is exactly what I need. As far as adding them to samba I can probably come up with a script for that.
After adding them to the system webmin has something built into it to mass add users to samba. it will add all users from the system to samba that are not already samba users. Got to your webbrowser of choice an type in following: http://linux-jack:10000/ the linux-jack is what i have for a prompt. you will have something else depending of if you changed the default. this will bring up a logon in box you need to enter root for user an the the root password for password. this will open up webmin in browser. then click on servers icon on the top of the window. then scroll down til you see the samba icon. click on it the look for line close to bottom of page saying convert unix users to samba users. This will add any unix user that is not already a samba user to the samba user. I have always had to go in for each user afterwards an put in a password but since i have only 25 or so users that has not been a problem for me. I know it could get tedious for 1000 users, Just thought i would through this in. jack malone Horizon Industries Network admin
participants (2)
-
Allen
-
Jack Malone