Adding Samba users to Linux Centos box or other Linux distro
fails.
If a user account name, added to Samba does not have an
account on the Linux box, then creation of the Samba user account will fail.
So before adding user accounts to Samba, create an account
for the user on the Linux box.
Do these steps below:
Adduser account to Linux:
1. adduser 'user_name' --- create a user
account
adduser --system --no-create-home user_name
man adduser - for more info
adduser --help
adduser --info
apropos adduser
man adduser - for more info
adduser --help
adduser --info
apropos adduser
You may need to add sudo before the command if you're
running Ubuntu.
Or check the documentation of your Linux distro on how to
add user account.
Now that a user account has been created, add the user
account to Samba.
2. smbpasswd -a user_name
(the user name that was created on Step 1)
man smbpasswd - for more info
smbpasswd --help
smbpasswd --info
apropos smbpasswd
If everything goes well, then creation of user account in
Samba should be okay.
If local user account is not present on the Linux box, then
smbpasswd command will show this error " failed to add entry
for the user".
So a local user account is needed before adding Samba user
account.
If Samba "smb.conf" file is properly configured and all Samba ports has been forwarded or correctly set on the firewall. And still Samba does not work.
For CentOS/RedHat try: yum samba reinstall
Test and check whether Samba is working.
If Samba "smb.conf" file is properly configured and all Samba ports has been forwarded or correctly set on the firewall. And still Samba does not work.
For CentOS/RedHat try: yum samba reinstall
Test and check whether Samba is working.
Hope this helps someone. Cheers! Till next time.
================================
Free Android Apps:
Click on links below to find out more:
Linux Android App cheat sheet:
Catholic Rosary Guide for Android:
Divine Mercy Chaplet Guide (A Powerful prayer):
Comments
Post a Comment