1 Preliminary Note
net config workstationrun as root
sudo -s2 Anonymous Samba sharing Samba is available in the Ubuntu repositories. The first step is to install the Samba Server and its dependencies with apt.
apt-get install -y samba samba-common python-glade2 system-config-sambaTo configure samba, edit the file /etc/samba/smb.conf. I will use nano as editor and make a backup of the original file before I start to change it. The backup file is named /etc/samba/smb.conf.bak
cp -pf /etc/samba/smb.conf /etc/samba/smb.conf.bak cat /dev/null > /etc/samba/smb.confOpen the Samba configuration file with nano:
nano /etc/samba/smb.confAnd add the following lines.
[global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user dns proxy = no #============================ Share Definitions ============================== [Anonymous] path = /samba/anonymous browsable =yes writable = yes guest ok = yes read only = no force user = nobodyThen I’ll create a directory for the anonymous share.
mkdir -p /samba/anonymousSet the correct permissions.
chmod -R 0775 /samba/anonymous chown -R nobody:nogroup /samba/anonymousAnd restart Samba to apply the new configuration.
service smbd restartNow you can access