LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 18
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
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

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

Original Poster
Rep: Reputation: 18
Quote:
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
hi007
LQ Newbie
 
Registered: May 2011
Posts: 12

Rep: Reputation: 0
Wiki user name and password

Hey what is username and password for wiki. Thanks.
 
  


Reply

Tags
linux, samba, script, users



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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