LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2012, 06:33 AM   #1
yaron.kadem
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
No /etc/samba/smbpasswd file and /etc/samba/smbusers file is not being update


Hi Linux folks,

I need some help in managing Samba users on CentOS release 6.

I just yumed an SMB server and configured it, the SMB server does work OK and I'm able to add SMB users to my Linux installation using /usr/bin/smbpasswd and then access Samba shares with no problems.

My problem is that I don't see any /etc/samba/smbpasswd file and my /etc/samba/smbusers file is not being updated with new users, I did 'touch' /etc/samba/smbpasswd file and then added new users but the file I touched is not being updated so I deleted it.

As a result of the above, I don't know what users have been added by me and can't managed the server well.

Thank you very much for your help.

Yaron
 
Old 01-23-2012, 08:07 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
My problem is that I don't see any /etc/samba/smbpasswd file
are you sure with this because as soon as you generate a samba password for any user than initially

Code:
/etc/samba/smbpasswd
file is created and updated every time you create smbpasswd
Code:
#smbpasswd -a user1
New SMB password:
Retype new SMB password:
like for mine
Code:
#cat /etc/samba/smbpasswd
user2:500:570CE399DA1412ABAAD3B435B51404EE:B9D2D4955B330B503CC792EB6A55BB1F:[U          ]:LCT-4F1368B7:
user1:501:570CE399DA1412ABAAD3B435B51404EE:B9D2D4955B330B503CC792EB6A55BB1F:[U          ]:LCT-4F136B87:
Quote:
my /etc/samba/smbusers file is not being updated with new users,
This file is not updated automatically. this file is used to mention different abbreviation used for any user
Code:
#cat /etc/samba/smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
user1 = user1
you can see the meaning of the file in the first line itself
 
  


Reply

Tags
linux, samba, smb


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
How to make samba read updated smb.conf file without restarting samba anon091 Linux - Newbie 13 06-30-2021 04:43 AM
samba smbpasswd file problem shusko9 Linux - Server 6 10-14-2012 12:02 PM
generating tmp file in samba server while saving file from win7 in samba server centos123 Linux - Server 15 11-05-2011 05:05 AM
samba file permission & build_sam_account issue in samba cnt Linux - Server 5 08-10-2011 01:19 PM
Samba smbpasswd file missing Amy84 Linux - Newbie 6 03-15-2011 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:26 AM.

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
Open Source Consulting | Domain Registration