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!
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:
|All times are GMT -5. The time now is 12:22 PM.|