Fedora Linux Support Community & Resources Center
  #1  
Old 9th February 2008, 06:53 PM
bilkay Offline
Registered User
 
Join Date: Feb 2008
Posts: 36
Where is smbpasswd file?

I'm having problems getting samba functioning in FC-8. On my old RH-9 installation, the smbpasswd file was in /etc/samba. There's a smbpasswd file in /etc/samba in FC-8 but when I try to add a user:

$ smbpasswd -a username
New SMB password:
Retype new SMB password:
$

It goes as if the user is added, but smbpasswd remains empty and the file smbusers doesn't have username added.

Then:

$ smbclient //yourhostname/aservice # (from samba HOWTO with appropriate substitutions)
session setup failed: NT_STATUS_LOGON_FAILURE

Why does the /etc/samba/smbpasswd file remain empty after supposedly adding a user? Is the actual password file somewhere else?

The samba HOWTO doesn't seem to have any information on what that error means or what to do to correct it.
Reply With Quote
  #2  
Old 9th February 2008, 07:01 PM
Mektub Offline
Registered User
 
Join Date: Feb 2004
Location: Lisbon/Portugal
Posts: 16
Quote:
Originally Posted by bilkay
I'm having problems getting samba functioning in FC-8. On my old RH-9 installation, the smbpasswd file was in /etc/samba. There's a smbpasswd file in /etc/samba in FC-8 but when I try to add a user:

$ smbpasswd -a username
New SMB password:
Retype new SMB password:
$

It goes as if the user is added, but smbpasswd remains empty and the file smbusers doesn't have username added.
The smb passwd file is stored where the entry 'smb passwd
file' in /etc/samba.smb.conf points to.

If you dont have any it will take a default, in my case '/var/lib/samba/privete/smbpasswd'.

You can find your value with:

Code:
 testparm -v | grep passwd
Mektub
Reply With Quote
  #3  
Old 19th January 2014, 11:05 AM
jadik Offline
Registered User
 
Join Date: Jan 2014
Location: Detroit
Posts: 1
macoschrome
Re: Where is smbpasswd file?

Hopefully this answer helps to clear this up, as I was also unable to find a clear answer to the simple question: "how do I access the smbpasswd utility?". I hunted it down, and found the following command returns all yum packages with the word "samba":

Code:
yum search samba
Upon running the above command, listed at the top of the results was:
system-config-samba.noarch : Samba server configuration tool
It seemed logical to yum install the package:

Code:
yum install system-config-samba
After it completed, it became possible to use the command:

Code:
smbpasswd -a user
Reply With Quote
Reply

Tags
file, smbpasswd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Smbpasswd file Frenzy50187 Using Fedora 6 13th April 2009 03:16 PM
smbpasswd configuration file tianlijian Using Fedora 0 22nd November 2008 03:57 PM
smbpasswd fails sstrong Servers & Networking 3 5th September 2004 12:11 AM


Current GMT-time: 21:42 (Thursday, 24-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat