2011-02-26

Try the first samba

Add following code (this is just a example) in to /etc/samba/smb.conf

[share]
    comment = Ubuntu File Server Share
    path = /srv/samba/share
    browsable = yes
    guest ok = yes
    read only = no
    create mask = 0755


In ubuntu 10.10 service could be restart by using:
sudo restart servicename
To restart samba server following two command need be used:
sudo restart smbd
sudo restart nmbd
To block unauthorized access, change "security = no" in [Global]  section and "guest ok = no" in shared section.

Last apparmor have to be modified to allowed application access certain files. Install apparmor-profiles packages which contains binary file to modify. "sudo apt-get install apparmor-profiles". Edit /etc/apparmor.d/usr.sbin.smbd by adding following specified path info at the end of this file: 
/srv/samba/share/ r,/srv/samba/share/** rwkix,
Reload to enable the setting: sudo aa-enforce /usr/sbin/smbd