Linux Reality Episode 25: Windows Networking Part 1 Extra Notes Accessing Windows from Linux - i.e. mounting a Samba share Turn on file sharing on Windows box. Open ports 137-139. Install smbfs from your package manager. If you want users to mount & unmount Samba shares, change these permissions: chmod u+s /usr/bin/smbmnt chmod u+s /usr/bin/smbumount as user, make a mountpoint, e.g. /home/sambashare command to mount: smbmount //server/share /home/sambashare to mount at boot: edit /etc/fstab //server/share /home/sambashare smbfs //credentials=/etc/samba/.smbpasswd,user,rw,auto,fmask=0777,dmask=0777,uid=1000,gid=100 //0 0 (that is all on one line) or //server/share /home/sambashare smbfs credentials=/etc/ samba/.smbpasswd,rw,uid=bob 0 0 (that is all on one line) in /etc/samba/.smbpasswd put username = user password = secret This is your Windows username & password. You need a Windows account. chmod 0600 /etc/samba/.smbpasswd That changes the permissions so only the root user can read .passwd.j Note: You don't have to mount your Samba shares in /etc/fstab. That is optional. You can also usually browse the network using your file manager (e.g. konqueror or nautilus). To browse, type "smb:///" in your file manager url bar Updated: Mon Oct 23 22:20:57 EDT 2006