Manually Share and Mount a Samba Share in Ubuntu Server 9.04

For those of you who do not have/use a GUI, this is how to manually share and map a samba share:

On the server:

apt-get install samba
Nano the smb.conf in /etc/samba/smb.conf to include
[Share Name]
path = /home/share
available = yes
browseable = yes
public = yes
writable = yes
Modify that to meet your needs then restart the samba service:
/etc/init.d/samba restart

On the client:
apt-get install smbfs
mkdir /mnt/share
mount -t smbfs //serverIP/share /mnt/share
If the share is not public, then you might need to use the switch -o username=user.


0 comments: