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 11-22-2008, 09:58 AM   #1
tianlijian
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Rep: Reputation: 15
smbpasswd configuration file


where is the smbpasswd configuration file located. i have searched it with google. Somebody explains that the smb passord is store in the file /etc/samba/smbpasswd.
However, on my Fedora 9, the /etc/samba/smbpasswd file does not exists, but the samba password system works well. Why does this happen? Is the password stored in other files?
 
Old 11-22-2008, 02:56 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,766
Blog Entries: 27

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Hi,

It should be in '/etc/samba and the passwd in '/etc/samba/smbpasswd_file, unless you specify otherwise in the 'smb.conf'.

The 'Samba-Guide' is a good place to look.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!

Last edited by onebuck; 11-23-2008 at 02:45 AM. Reason: correct my thought to show file
 
Old 11-22-2008, 10:25 PM   #3
tianlijian
LQ Newbie
 
Registered: Mar 2007
Posts: 27

Original Poster
Rep: Reputation: 15
I had used the following command to find the file smbpasswd.
Code:
find / -name smbpasswd
The output of the command is
Code:
/usr/bin/smbpasswd
I count not find the smbpasswd file. But the samba password system works fine. Why it happens?
 
Old 11-22-2008, 10:54 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
/usr/bin/smbpasswd is the command to give your users samba passwords. You manually create the file. Then when you issue the command the passwords are stored in the password file.
 
Old 11-23-2008, 02:50 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,766
Blog Entries: 27

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Hi,
Quote:
Originally Posted by tianlijian View Post
I had used the following command to find the file smbpasswd.
Code:
find / -name smbpasswd
The output of the command is
Code:
/usr/bin/smbpasswd
I count not find the smbpasswd file. But the samba password system works fine. Why it happens?
Look at your '/etc/samba/smb.conf' to see where your password file is stored.

Sorry about my file specification error, it should have shown the '/etc/samba/smbpasswd_file'. I did note after that you should look at the '/etc/samba/smb.conf' to see where the file is stored and the name.

My bad!
 
  


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
adding users using smbpasswd, or synchronise passwd/smbpasswd gyodai Linux - Networking 2 03-11-2009 02:47 PM
DNS configuration and configuration file in RHEL5 remo1225 Linux - Newbie 1 02-20-2008 04:25 AM
Where is smbpasswd file located in Fedora 7? SlowCoder Red Hat 2 07-08-2007 07:12 PM
smbpasswd -a ... smbpasswd: Command not found Lleb_KCir Linux - Software 7 08-11-2004 11:27 AM
Importing Win2K SAM file into smbpasswd sewer_monkey Linux - Networking 1 06-11-2004 11:08 AM

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

All times are GMT -5. The time now is 11:33 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