Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-07-2010, 07:44 AM   #1
Registered: Nov 2009
Posts: 48

Rep: Reputation: 17
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?
Old 01-07-2010, 12:16 PM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 209Reputation: 209Reputation: 209
There's a script to do precisely that here: Addu
Old 01-07-2010, 12:54 PM   #3
Registered: Nov 2009
Posts: 48

Original Poster
Rep: Reputation: 17
Originally Posted by {BBI}Nexus{BBI} View Post
There's a script to do precisely that here: Addu
Many Thanks
Old 06-07-2011, 04:22 PM   #4
LQ Newbie
Registered: May 2011
Posts: 12

Rep: Reputation: 0
Wiki user name and password

Hey what is username and password for wiki. Thanks.


linux, samba, script, users

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
use script to create a data file of mulitple users RajRed Linux - Newbie 4 11-27-2007 06:05 PM
Samba, LDAP, do I need smbpasswd to create users? yuri_d Linux - Server 2 07-25-2007 07:46 AM
Samba: Users can read, create folder, nothing else gt_swagger Linux - Server 1 02-20-2007 04:52 PM
Create users in Samba br_sriram Linux - Software 2 09-24-2004 11:49 AM
create users using script polis Linux - General 1 05-18-2004 08:19 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration