LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   No /etc/samba/smbpasswd file and /etc/samba/smbusers file is not being update (https://www.linuxquestions.org/questions/linux-server-73/no-etc-samba-smbpasswd-file-and-etc-samba-smbusers-file-is-not-being-update-925236/)

yaron.kadem 01-23-2012 06:33 AM

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

deep27ak 01-23-2012 08:07 AM

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


All times are GMT -5. The time now is 06:28 PM.