LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-04-2003, 01:39 PM   #1
ribbones
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:

[global]

workgroup = Home

server string = Samba
hosts allow = 192.168.0. 127.0.0.1
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

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

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
 
Old 09-04-2003, 01:53 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
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, 02:08 PM   #3
ribbones
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks,
Worked =)
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration