1. Edit /etc/samba.conf add the following lines
[tmp] comment = Test path = /tmp writable = Yes public = Yes2. Add a Samba user.
smbpasswd -a sambauserEnter the password.
3. We need to open firewall for the following ports:
- 137 (netbios-ns)
- 138 (netbios-dgm)
- 139 (netbios-ssn)
- 445 (microsoft-ds)
For more info, see /etc/services
3. Restart smb daemon.
/etc/init.d/smb restart
For Windows client to access the shared directory:
1. Go to Run and enter \\[ip_address]\tmp
2. Enter the Samba username and password.
For Linux client to access the shared directory:
mount -t cifs //172.16.242.129/tmp -o username=sambauser,password=password samba/
No comments:
Post a Comment