LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   how do I create linux and samba users with a script? (http://www.linuxquestions.org/questions/linux-general-1/how-do-i-create-linux-and-samba-users-with-a-script-780526/)

replica88 01-07-2010 08:44 AM

how do I create linux and samba users with a script?
 
I need to add linux and samba users using a shell script, it falls over because you are prompted to set a password.

I had a similar problem when installing the samba package using a script because it asks for confirmation after the command, I got round it using --force-yes -y as below.

apt-get install samba smbfs swat --force-yes -y

I suspect and hope you can do something along those lines when creating a linux user and a samba user, something like

smbpasswd ľa username ?????password

any ideas?

{BBI}Nexus{BBI} 01-07-2010 01:16 PM

There's a script to do precisely that here: Addu

replica88 01-07-2010 01:54 PM

Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3817774)
There's a script to do precisely that here: Addu

Many Thanks

hi007 06-07-2011 05:22 PM

Wiki user name and password
 
Hey what is username and password for wiki. Thanks.


All times are GMT -5. The time now is 10:36 AM.