Friday, March 6, 2009

problem with nautilus share properties in ubuntu 8.10

I got a problem when trying to configure directory share in nautilus with intrepid ibex (ubuntu 8.10). if you never using share properties with nautilus before, I'll explain it a little. Simply right click on directory that you want to share to windows network, If samba package not already installed then system will prompt you a question to install a samba package and its dependencies from repository.

A problem is appear and show a message like this when trying to click 'create share' button.
'net usershare' returned error 255: net usershare add:
cannot share path /media/Multimedia System/Movie/Archives as we are restricted to only sharing directories we own.
Ask the administrator to add the line "usershare owner only = False"
to the [global] section of the /etc/samba/smb.conf to allow this.

I forget if a directory that I want to share isn't in my home directory. I follow a message to modify a line 'susershare owner only' in /etc/samba/smb.conf and set a value to 'false' :
usershare owner only = False

Now I can share the directory. Another problem happen when I try to disable sharing properties for that directory. It's already disabled itself because a share's icon that showed on the directory is disappear. But the directory still shared in the network. So, I try to findout where the configuration file for each user has been stored, because there is nothing in /etc/samba/smb.conf about my shared directory. And I found that each user has join a "sambashare" group (in /etc/group).

When user try to share file or directory, that information will be stored in /var/lib/samba/usershares's directory. All of configuration that I was create before store in there. one file for one shared object (usually shared directory).I just delete it and that directory never showed in network again.

But I'm still curious, why my ubuntu intrepid ibex system sometimes show an icon that directory is shared when i check with nautilus, but sometimes an icon is disappear and the directory is still shared.