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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-02-2003, 10:43 AM
|
#1
|
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Rep:
|
I get this error when trying to add users('smbpasswd -a XXX').
Here is the screen :
root@JAC:/usr/local/samba/bin# ./smbpasswd -a JAC
New SMB password:
Retype new SMB password:
User JAC does not exist in system password file (usually /etc/passwd). Cannot add account without a valid local system user.
Failed to modify password entry for user JAC
I am stumped on this because, of course the user does not exist, I am trying to add a new user. My log files in var/samba/ don't help me either.
Any ideas ?
JC
|
|
|
|
05-02-2003, 10:56 AM
|
#2
|
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
You need to have a valid _Linux_ user to add an smb user.
|
|
|
|
05-02-2003, 11:02 AM
|
#3
|
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Could you elaborate on that ?
JC
|
|
|
|
05-02-2003, 11:49 AM
|
#4
|
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,430
Rep:
|
What he means is that the user has to be already in the system. You can't just add a new user to samba without them being in the system. For example, type this:
"useradd JAC"
"passwd JAC"
Enter the password for JAC. By doing this, you have just added user JAC to your system. Now, you are able to add JAC to your samba file.
"smbpasswd -a JAC"
Everything should go well at this point. Hope it clears up your confusion. BTW, these commands work for redhat. I dont have if the commands are the same for Slackware but I think you got my point
-twantrd
|
|
|
|
05-02-2003, 12:09 PM
|
#5
|
|
Member
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66
Rep:
|
Hey
you need to have a user created before you can ad an smb user.
#useradd (username)
#passwd (username) (passsword)
then you can do
#smbadduser (username:username)
|
|
|
|
05-02-2003, 12:10 PM
|
#6
|
|
Member
Registered: Nov 2001
Location: Toronto, Canada
Distribution: CentOS 4
Posts: 66
Rep:
|
I was a bit late I guess... foget to send this out when I finished it lol
|
|
|
|
05-02-2003, 03:06 PM
|
#7
|
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Thanks for the help everyone !
JC
|
|
|
|
05-02-2003, 06:34 PM
|
#8
|
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Once again, thanks for the help ! Problem solved ! I ran into another problem, which I fixed, but would like to attatch to this post.
When the 'smb.conf' file had this entry :
'smb passwd file = /etc/passwd'
I would get these errors after trying to perform 'smbpasswd -a xxx' :
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
mod_smbfilepwd_entry: malformed password entry (uid not number)
Password changed for user jac.
Failed to modify entry for user jac.
Failed to modify password entry for user jac
The fix was simply to change 'smb.conf' like this :
'smb passwd file = /etc/smbpasswd'
And then create a blank file in that directory called 'smbpasswd'.
It worked without any errors after that.
Does anyone know why it works that way ?
Just curious.
JC
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|