Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-04-2003, 12:39 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 9

Rep: Reputation: 0
Samba Config

Hi !

I can see my Samba from my Win machine, but i can't log in.
I get this message in the samba log for the user i try to log in as:
"[2003/09/04 19:22:29, 0] passdb/pdb_smbpasswd.cdb_getsampwnam(1369)
unable to open passdb database."

Using RH 9 and shadowed passwords (had some problems before with the shadowed passwords)

I dont have the /etc/samba/smbpasswd file.
Do i have to create, since i want to use the users system pwd ?
If so how should it look.

My config:


workgroup = Home

server string = Samba
hosts allow = 192.168.0.
printcap name = /etc/printcap
load printers = no

printing = cups

log file = /var/log/samba/%m.log

max log size = 200

security = user

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

pam password change = yes

obey pam restrictions = yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

comment = Home Directories
browseable = yes
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775

comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
Old 09-04-2003, 12:53 PM   #2
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Yes, you need the smbpasswd file. Samba authenticates it's shares through the smbpasswd file. Once samba says that it is ok for a user to access the share, it checks locually too. So you need to set local access rights to.

The smbpasswd is usually in the /etc/samba or /etc/samba/private directory. Make sure that when you create it that you chmod 700 smbpasswd and chown root smbpasswd to it.
Old 09-04-2003, 01:08 PM   #3
LQ Newbie
Registered: Sep 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Worked =)


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
please help with my samba config!!! gsgleason Linux - Networking 1 03-10-2005 10:24 PM
Webmin cannot handle Samba config files that use the config or include directives allelopath Linux - Networking 3 01-18-2005 09:36 AM
samba config spikes Linux - Software 2 06-17-2003 05:14 AM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM
Samba config cellis1234 Linux - Networking 3 01-02-2002 10:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 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
Open Source Consulting | Domain Registration