LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-04-2007, 02:14 AM   #1
linuxy2
LQ Newbie
 
Registered: May 2005
Posts: 12

Rep: Reputation: 0
Sama problem with "smbpasswd"


I have FC5 and I want to add users to samba server from file already I made it but I can't with this command in FC5:
smbpasswd it show this this output:
like help or the command syntax not right

[root@vmfc5 ~]# smbpasswd -a st3 123456
When run by root:
smbpasswd [options] [username]
otherwise:
smbpasswd [options]

options:
-L local mode (must be first option)
-h print this usage message
-s use stdin for password prompt
-c smb.conf file Use the given path to the smb.conf file
-D LEVEL debug level
-r MACHINE remote machine
-U USER remote username
extra options when run by root or in local mode:
-a add user
-d disable user
-e enable user
-i interdomain trust account
-m machine trust account
-n set no password
-w PASSWORD ldap admin password
-x delete user
-R ORDER name resolve order


And this command working fine in Red Hat9
if any one cane help me in this.....Please..!

[/SIZE][/SIZE]
 
Old 03-04-2007, 02:17 AM   #2
TylerD75
Member
 
Registered: Aug 2004
Location: Norway
Distribution: Gentoo
Posts: 95

Rep: Reputation: 17
Have you remembered to add the usernames to /etc/passwd first?
 
Old 03-04-2007, 02:28 AM   #3
linuxy2
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thank u for your reply yes already the users created what I want to add users and their passwords in one line no need to prompt to enter the password manualy but it will from file and I tried in Red Hat9 and every time I doing with Red Hat9 and problems maybe in FC5 something change or anothe way to do it... Thanx
 
Old 03-04-2007, 03:12 AM   #4
TylerD75
Member
 
Registered: Aug 2004
Location: Norway
Distribution: Gentoo
Posts: 95

Rep: Reputation: 17
If you've got an old smbpasswd file, try this:
# pdbedit -e smbpasswd:/<folder>/smbpasswd.old

Anyways, I think what you're looking for is "pdbedit" not smbpasswd...
 
Old 03-04-2007, 03:56 AM   #5
linuxy2
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thank u agin for your reply
can u please explain it because I'm not that expert in linux and how to use pdbedit
I have file like this smb.txt and I want to run it in terminal and this conatains command ex:
smbpasswd -a st1 st1pass
smbpasswd -a st2 st2pass
smbpasswd -a st3 st3pass

and before working in redhat9 and not import users from onther place.
Thanx
 
Old 03-05-2007, 02:43 AM   #6
TylerD75
Member
 
Registered: Aug 2004
Location: Norway
Distribution: Gentoo
Posts: 95

Rep: Reputation: 17
Here's what I suggest:
Post a new question in the BASH scripting section, ask for a way to add users with "smbpasswd -a -s".
With the -s (silent) option, there's no text echoed to the screen, so all you need to do is to echo the password twice.
My problem is that I don't know enough about bash scripting to do this.
But I suspect it's probably suprisingly easy...
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposed solution for "status" (aka "problem solved") indicator demerson3 LQ Suggestions & Feedback 12 04-08-2006 02:15 PM
Problem with "3Com", "3CRSHPW_96 Wireless LAN PC Card " Adil_uk Linux - Wireless Networking 0 12-18-2005 05:45 PM
Debian Boot Up Problem - stuck at "BR" & "I" jc70417 Debian 2 08-30-2005 04:36 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Sound problem with "alsamixer" or "alsaconf" or sth else maybe... Mikuda Linux - Games 4 05-01-2004 11:09 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration