I. install Samba in Ubuntu11.04: $ sudoapt-getinsallsamba $ sudoapt-getinstallsmbfs II. create a shared directory: $ mkdir/home/work/samba_share $ soduchmod777/home/work/samba_share # if not modified
1. Install Samba in Ubuntu 11.04:
$ Sudo apt-get insall samba
$ Sudo apt-get install smbfs
2. Create a shared directory:
$ Mkdir/home/work/samba_share
$ Sodu chmod 777/home/work/samba_share # If you do not change the permission, you cannot write data in windows (applicable to read-only sharing )!!!
3. Modify the Samba configuration file:
$ Cp/etc/samba/smb. conf/etc/samba/smb. conf. old # back up the samba configuration file
$ Sudo gedit/etc/samba/smb. conf
Change security = user to security = share.
Move the cursor to the last line of the configuration file and add the following configuration lines below
[Home]
Comment = homepath
Path =/home/work/samba_share
Writable = yes
Locking = no
Public = yes
Guest OK = yes
4. Restart the Samba Service
# Sudo/etc/init. d/smbd restart
OK!