Samba Configuration
Hi there,
I am very new to linux, I have RedHat 9 installed with Samba 2.2.7a-7.9.0 installed on my test PC, I am using Swat web tool to configure this Samba server. I did create couple of accounts under linux, Do need to create separate account in samba psswd file or can I use the same linux account to authenticate against sabma server ? I did create a share in samba , and try to access it from a windows xp machine, it didn't work for me until I add the user in swat password tab. What is the purpose of this swat password tab ? |
For some reason, Linux uses separate user ids and passwords for samba than it does for its main authentication, then when you log into samba using a samba username, this is mapped back to a linux username which allows it to do permissions checking etc. So yes, you do need entries in both smbusers and smbpassword - a bit of a pain I know, I came across this same issue.
|
u really have to create a seperate password file for samba. in the conf: file for samba u have to unhash the lines "samba userfile = /etc/samba/smbpasswd" . after that u have to add the users as usual linux accounts. now u must add the users in /etc/passwd for samba by the command " cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd". this creates the samba passwd file from the local passwd file. now use the command "smbpasswd username" to create the password for the users. without this step u cant use the useraccounts. restart samba. feel free to ask questions ....... vimal
|
hi, What is the purpose of the Password tab Swat web tool ? can we add linux or sanba users here ?
|
Hi Vimal,
I did the following. I add " smb user file= /etc/samba/smbpasswd", " smb user passwd file = /etc/samba/smbpasswd " in smb.conf file. and also I did the mksmbpasswd.sh command to create the smbpasswd file. But I can not access samba shares until I manually go and each user in swat password tab. What is the purpose of smbpasswd , smbusers file ? Thnaks, |
smbusers defines the users that are permitted to connect using samba, and it maps the samba usernames to the linux user ids that are stored in /etc/passwd. smbpasswd defines the password for each samba user.
|
All times are GMT -5. The time now is 12:27 AM. |