15 April, 2010

Configuring SAMBA on linux

1. Edit /etc/samba/smb.conf to specify your workgroup and server string.

2. At the bottom of smb.conf, specify the folder you wish to share.

3. To create smbpasswd from existing users in /etc/passwd

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

If smbpasswd is not already there, create it.

4. chmod 600 /etc/samba/smbpasswd

5. smbpasswd <username>

6. uncomment these lines from /etc/samba/smb.conf

encrypt password = yes

smb passwd file = /etc/samba/smbpasswd

7. Restart smb services by

/etc/rc.d/init.d/smb restart

No comments:

Post a Comment