Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.