Share Networks PC in ubuntu

1 Preliminary Note
 net config workstation
run as root
 sudo -s
2 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-samba
To 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.conf
Open the Samba configuration file with nano:
 nano /etc/samba/smb.conf
And add the following lines.
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no

#============================ Share Definitions ============================== 

path = /samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody

Then I’ll create a directory for the anonymous share.
 mkdir -p /samba/anonymous
Set the correct permissions.
 chmod -R 0775 /samba/anonymous
chown -R nobody:nogroup /samba/anonymous
And restart Samba to apply the new configuration.
 service smbd restart
Now you can access
Selim Reza

Site Footer