linux poison RSS
linux poison Email

Creating the smbpasswd file from /etc/passwd file

Ok, to create the /etc/smbpasswd file: run the following command:

# cat /etc/passwd | mksmbpasswd.sh >/etc/smbpasswd
- Next, fix the permissions of the file:

# chmod 500 /etc/smbpasswd
With this command, all users defined in the /etc/passwd file will have a SMB entry put into the /etc/smbpasswd file. Please note that if desired, users can log in via a different SMB username/passwd than their Unix username/password. Please be aware that though the user is now defined in the smbpasswd file, the user will be LOCKED out until they actually CHANGE their SMB password. To do this, run the following command PER user:

# smbpasswd nikesh






0 comments:

Post a Comment

Related Posts with Thumbnails