Usershare should be set up (but not enabled by default)

Bug #103563 reported by Karl Hegbloom
4
Affects Status Importance Assigned to Milestone
nautilus-share (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: samba

Nautilus has a plugin that lets you turn on Samba 'usershare', but that is not configured by default. When you go to share a directory for the first time, it says that it's not enabled. The package should contain (IMO):

/var/lib/samba/usershares owned by root:users, chmod ug=rwx,o=t
... and every newly created desktop user should be in group users... perhaps a special group should be created for it, your call.

That is the default setting for "usershare path". I think that "usershare deny list" should probably contain at least "/etc /dev /proc /sys" by default. (It is empty now.) "usershare allow list" perhaps should default to "/home".

Perhaps a "usershare template share" should also be set up by default, as described in the SWAT help screens.

Revision history for this message
Karl Hegbloom (karl.hegbloom) wrote :

Also "usershare allow guest", "usershare max shares" and "usershare owner only" should be configured. IMO, the defaults should be, when usershares are enabled, true, 100, and false.

I will also file a bug on "gnome-system-tools" for the "shares-admin" tool, and will link that bug to this one.

Revision history for this message
Áron Sisak (asisak) wrote :

Thanks for your suggestion. However, the changes you are requesting aren't really a bug and require more discussion, which should be done on an appropriate mailing list or forum. <http://www.ubuntu.com/support/community/mailinglists> might be a good start.

Changed in nautilus-share:
status: Unconfirmed → Rejected
Revision history for this message
Martin Olsson (mnemo) wrote :

General note: I have (and I assume a lot of other people as well) an external USB harddrive formatted as NTFS (so that I can access it in Windows and Ubuntu). Typically, such partitions are mounted so that the files are owned by root and if SAMBA prevents me from creating a network share based on a folder located on a disk like this then that's a major inconvenience / bad UX for me (i.e. whenever I want to share a file I have to copy it to my ext3 Linux partition and share it from there).

The particular error message display to end users when they try to share a folder from a NTFS drive is the following:

'net usershare' returned error 255: net usershare add: cannot share path /media/EXTERNAL_______/music 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 smb.conf to allow this.

Ask my administrator? Heh, I wish I could afford one of those :-) This is not newbie friendly.

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Hve you tried to add :
usershare owner only = False
in smb.conf ?
And when you have put it, is usershare able to share external NTFS drive ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.