-   Linux - Software (
-   -   Samba in Debian, smb.conf: smb passwd file = ?????????? (

henrnorl 10-06-2006 03:48 AM

Samba in Debian, smb.conf: smb passwd file = ??????????
I am trying to configure smb.conf. I've read that Samba has its own userdatabase where usernames and encrypted passwords are stored. In smb.conf I should write:

smb passwd file = [path to the database file]

How do I know the path to the samba database file?

I have got a suggestion, but I cannot find the file on my computer on this location:

I do have the file /usr/bin/smbpasswd but I have understood that this is a program file, and not a database file???

Thanks for help!

camorri 10-06-2006 09:43 AM

You can use the 'locate command to find any file or directory. For it to work effectivley, you need to switch to su and run the command 'updatedb' ( without the quotes first. If you have never run updatedb, it may take a few minutes to complete. It will build a data base of all files and directories on your system. Once that completes once, try 'locate smbpasswd' ( no quotes ). If you have the file it will spit back the path to the file very quickly.

My smbpasswd file is located at /etc/samba/smbpasswd.

If at dought about what type of file a file is, use the 'file' command. A simple example is:


file /etc/samba/smbpasswd
/etc/samba/smbpasswd: writable, regular file, no read permission

This what it looks like on my system. Hope this helps.

All times are GMT -5. The time now is 06:37 AM.