Discussion Locked

User accounts in SAMBA

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I installed SAMBA on REDHAT7. THe only user account I can connect with is root and the corresponding password. Where do I set up additional users?
I have my Linux set up as a workstation.
Also, where is the samba.conf file located that the software is using?
Is it the one in /usr/local/samba?
Is it enough to create a text file or is there anything I need to do with it?
I am new to this so take it easy on me, please.

7 replies

by cpfeiffe

One or two things might have to happen.

First the user account should exist in the standard system password files - you would need to add the user to the Unix OS with useradd, vi the appropriate file(s) or some other tool. That first part is only necessary if you are using Samba as User level Security.

Also, if you are using user level security you can point Samba to a password server and you would create the accounts there instead of on the local server.

Now comes the part that must happen no matter what level of security you are using. You must do a smbpasswd -a $user to add the user to the smbpasswd file. Once you issue this command it will ask you to provide a password much like passwd $user would. Make sure this password matches the system password for the user if you are using User level security.

Good luck.

by mckaytech

On RedHat v7, you can use the 'smbadduser' command to add SAMBA users. This will update the SAMBA users file, password file and request a password for each added user.

paul

by zbrain75

The above answers are correct. This is assuming you are using password encryption for user authentification (which you should).

The smb.conf file is /etc/samba/smb.conf. It was /etc/smb.conf in previous versions of Redhat. For more informationon Samba and setting it up see the Samba section in the CTDP Linux Users Guide at:
http://ctdp.tripod.com/os/linux/usersguide/index.html

This discussion is closed to new replies.