Upgrading to Hardy destroyed my network shares and when I try to recreate them I get this long complicated error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I just took the plunge and upgraded from Gutsy to the latest pre-release version of Hardy. Overall it fixed a bunch of problems for me and I'm delighted with the new version. I did run into one issue that caused some problems though:
After I had upgraded to Hardy my folder called "music" was no longer shared as a SMB windows network share. This means that my Windows computer (which doesn't have any music stored on it) cannot play any tunes. I immediately tried to fix this by sharing the folder again but when I tried I got this really long strange error message that says I should talk to by system administrator ("yeah right, I wish I could afford one of those actually :-)". The error message I got was:
'net usershare' returned error 255: net usershare add: cannot share path /media/
Ask the administrator to add the line "usershare owner only = False"
to the [global] section of the smb.conf to allow this.
The folder I'm trying to share over SMB is located on one of those external USB harddrives and it's formatted as NTFS. That means that when I mount it in Ubuntu all the files are marked as "owned by root". Now, in Gutsy I was able to share these folders just fine.
However, it seems that in Hardy some kind of flag has been activated that prevents me from sharing files that I don't own. Well, clearly it's my files that are stored on this USB harddrive but it seems that the ability to share folders from NTFS drives has been lost in Hardy.
There was no obvious workaround for me to solve this problem, except copying the files to my root partition which is ext2 (this is quite inconvenient though because my music collection doesn't fit on this partition). There was also no checkbox that allowed me to type in my administrator password and override this error message and share the folder anyway.
I've attached a screenshot to this bug, that illustrates the problem I ran into.
You have 2 problems. config- samba) edit smb.conf to recreate your shares like before (in smb.conf).
1/ On upgrade you have lost your gutsy shares. Why ? Have you manually overwrited smb.conf during upgrade ?
2/ The new sharing system use the usershare samba system. A security option is set to not allow users to share folders that they are not owner Bug #214420 -> so you can manually (or use gui like system-