Samba Commands

I keep forgetting the simple commands for adding and changing passwords for Samba. Here it is:

Add a User to Samba
[root@snort root]# useradd – /home/billybob -s /bin/false -n billybob
[root@snort root]# passwd billybob
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@snort root]# smbpasswd -a billybob
New SMB password:
Retye SMB password:
Added user billybob.
[root@snort root]#

Restart Samba
[root@snort root]# /etc/rc.d/init.d/smb restart

This entry was posted in Linux, Operating Systems and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s