Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't set up Samba users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kebabkarli
n00b
n00b


Joined: 26 Jul 2003
Posts: 37
Location: Tulln/AUSTRIA

PostPosted: Sat Jun 04, 2005 10:51 am    Post subject: [SOLVED] Can't set up Samba users Reply with quote

Samba was working fine 'till I tried to create one more share a week ago.

I set up the new share using SWAT. After pressing "commit changes", SWAT logged out and an Authentication Box appeared on my screen, but I wasn't able to authenticate using any of my previous working users. I thougt it was SWAT and so activated the
Code:
server_args     = -a
option in my /etc/xinetd.d/swat. (This means, that SWAT doesn't need any authentication to log in)
When now checking all my options in SWAT, nothing seemed to have changed. - OK let's go one step down.

My first idea was just to give my users new passwords:
Code:
# smbpasswd -a samba
New SMB password:
Retype new SMB password:
NULL guest account!?!?
Failed to initialise SAM_ACCOUNT for user samba. Does this user exist in the UNIX password database ?
Failed to modify password entry for user samba

I reviewed my /etc/passwd, nothing seemed to be wrong:
Code:
...
samba:x:1001:100::/home/samba:/bin/bash
...

When doing smbpasswd for user root, it's the same:
Code:
# smbpasswd -a root
New SMB password:
Retype new SMB password:
NULL guest account!?!?
NULL guest account!?!?
Failed to initialise SAM_ACCOUNT for user root. Does this user exist in the UNIX password database ?
Failed to modify password entry for user root


Do you have any idea what I could have done wrong?


Last edited by kebabkarli on Sun Jun 05, 2005 9:47 am; edited 2 times in total
Back to top
View user's profile Send private message
kebabkarli
n00b
n00b


Joined: 26 Jul 2003
Posts: 37
Location: Tulln/AUSTRIA

PostPosted: Sat Jun 04, 2005 1:39 pm    Post subject: Reply with quote

After doing around for some time I finally got it working:

- stopped Samba
- deleted smb.conf and wrote a completely new one
- deleted /var/lib/samba/private
- created new samba users with pdbedit:
Code:
pdbedit -a -u [Username]

- restarted Samba

thanks to Gentoo-User daff :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum