Sharing files between gnu/linux and Windows using samba

Posted in Debian, Free Software at 11:31 am by Pirate Praveen

Install Samba package

# apt-get install samba

Samba configuration file is /etc/samba/smb.conf

You can add directories for sharing at the end like this

comment = Debian Cache
read only = yes
locking = no
path = /mirrors/debian
guest ok = yes

If you want to be able to share directories from nautilus file manager install nautilus-share and add your user to sambashare group

# apt-get install nautilus-share
# gpasswd -a <user> sambashare

Log out and login back for group change to take effect.

For mounting a samba share you have to install cifs-utils

# apt-get install cifs-utils

To mount a samba share now run

# mount -t cifs -o guest //<server>/<share> /<mount point>
# mount -t cifs -o guest // /mnt

Leave a Comment