Add Samba user prompt failed to add entry for user

Why can’t you grab tickets when you travel on holiday?Reveal the key technology of 12306 how to ensure the ticket is not oversold>>>

1. First, install samba in Ubuntu. The specific steps are as follows:
install Samba: sudo apt get install Samba
install smbclient: sudo apt get install
install smbfs: sudo apt get smbfs

2. Modify the configuration file
sudo GEDIT/etc/Samba/smb.conf edit the smb.conf file
to; Change security user to security user, Then add

[sharefiles]
comment = shared folder require password
Path =/home/Magic/share
public = yes
writable = yes
valid users = magic
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
Browse = yes

Restart Samb after saving a. Sudo/etc/init.d/samba restart

3. Set the user and password
sudo smbpasswd – a magic, and then I will prompt for the password

4. Finally, under Windows Network Neighborhood – > Right click – > Map the network drive

enter the folder box \ \ IP address \ \ sharefiles and press the prompt to enter the user name and password

this article is from the website of Linux commune( www.linuxidc.com )Link to the original text: http://www.linuxidc.com/Linux/2011-09/42621.htm

Add Samba user prompt failed to add entry for user

[ root@ubuntu ~]#smbpasswd-atest
NewSMBpassword:
RetypenewSMBpassword:
Failedtoaddentryforusertest.

solution:
this is because the corresponding system account is not added, so it will prompt the error of failed loadentry for user. Just add the corresponding system account test:
this is because the system account is not added[ root@ubuntu ~]#groupaddtest-g6000
[ root@ubuntu ~]#useraddtest-u6000-g6000-s/sbin/nologin-d/dev/null

at this time, you can add the samba account test with smbpasswd atest! In order to increase the security of the system, do not add the system account to the shell, and do not specify a directory for it. At that time, create a folder for the test account in the/home directory. Only test has read and write permissions for the folder
for example:
[ root@ubuntu ~]#mkdir/home/test
[ root@ubuntu ~]#chown-R test:test/home/test

if you don’t want other people to access it, you can only let test users access it by executing the command:
if you don’t want other people to access it, you can only let test users access it[ root@ubuntu ~]#chmodu+rwx,g+rwx,o-rwx/home/test

at this time, you can add Samba account test with smbpasswd command
to add Samba account test[ root@ubuntu ~]#smbpasswd-atest
NewSMBpassword:
RetypenewSMBpassword:
Addedusertest.

Similar Posts: