LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-06-2006, 03:48 AM   #1
henrnorl
LQ Newbie
 
Registered: Oct 2006
Posts: 14

Rep: Reputation: 0
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:
/etc/smbpasswd

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!
 
Old 10-06-2006, 09:43 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,779

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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:

Code:
file /etc/samba/smbpasswd
/etc/samba/smbpasswd: writable, regular file, no read permission
This what it looks like on my system. Hope this helps.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - which smb.conf file? henrnorl Linux - Newbie 4 10-06-2006 07:19 AM
Samba + smb.conf help. jwholey Linux - Software 1 07-05-2006 11:25 PM
samba smb.conf lukalinuix Linux - Networking 5 06-21-2004 06:32 AM
/etc/samba/smb.conf tsitras Linux - Newbie 2 04-09-2004 08:33 PM
Samba start up questions...Setting up share files and smb.conf file Xeroku Linux - Newbie 1 04-17-2003 10:10 PM


All times are GMT -5. The time now is 08:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration