To add all existing users in samba

20 views
Skip to first unread message

naresh

unread,
Nov 5, 2007, 9:12:22 AM11/5/07
to Delhi/NCR Linux Users Group
Use the following command to make all users samba users:-

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

If the system uses NIS, type the following command:
ypcat passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

The mksmbpasswd.sh script is installed in your /usr/bin directory with
the samba package.

Change the permissions of the Samba password file so that only root
has read and write permissions:
chmod 600 /etc/samba/smbpasswd

Thanks,
Naresh

Reply all
Reply to author
Forward
0 new messages