View Full Version : [ubuntu] Help i broke Samba - 'net usershare' returned error 255: net usershare add: cannot co
ouchmyhand
June 6th, 2009, 10:41 PM
error message when trying to create shares in Nautilus by right click -> share -> create share
'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. Invalid parameter.
I have found some other thread son this but running Nautilus as root using alt+f2 did not work, still get the same error.
Simply i want to have user access to a share from windows computers and PS3 but don't wnat to have to manage seperate accounts and passwords for Smaba and Ubuntu.
I had it mostly working (including not having to create extra UID's for Samba) but then I ran a GUI Samba config tool that messed things up.
I removed Samba & all configs, then reinstalled and now can't create shares???
Help please???
ouchmyhand
June 8th, 2009, 06:46 PM
Anyone???
ouchmyhand
June 9th, 2009, 09:33 PM
Can anyone redirect me to somewhere that could help? I'm so new i don't know where to look. I thought the Ubuntu forums would be a good start but so far no assistance.
ouchmyhand
June 10th, 2009, 08:35 AM
any help, surely someone else has had this error before?
Iowan
June 10th, 2009, 07:16 PM
I haven't seen the error before...
but I found a similar thread (http://ubuntuforums.org/showthread.php?t=1026668). (starting about post #5)
ouchmyhand
June 10th, 2009, 07:55 PM
Thanks for the post.
Unfortunately using root to share the folder didn't work. I assume the last two posts on the thread also didn't have their issue resolved by the link in that thread.
My guess is that there is a permission issue somewhere but as a newbie i have no idea where to start troubleshooting. Maybe even a way to reset all permissions that samba cares about?
Any help may actually help these other two posters at the end of the above mentioned thread.
Samba gurus, please help.
practic
June 22nd, 2009, 11:52 PM
This is a work-around, not a solution.
1. Install system-config-samba from Synaptic
2. Run the program from the menu System->Administration->Samba
3. Add the share using this program and it will be shared on the network
Nautilus will not recognize it as shared since it didn't create it, so you won't see the little sharing icon under the folder, but it seems to work anyway.
giyad
November 12th, 2009, 03:11 AM
Mark as solved ;-)
http://ubuntuforums.org/showthread.php?t=958457
kpetersen
December 28th, 2010, 09:34 AM
Mark as solved :wink:
http://ubuntuforums.org/showthread.php?t=958457
I'm on Ubuntu 10.10. For me this didn't work. The problem for me was, that I had not associated a system account to the samba guest account. All other settings were already like mentioned in the posting above.
Using the tool from post #7 is the right way... but not for adding the share.
I used it to assign the system user nobody to guest by choosing
settings->server-settings->security from the menu.
sudo service smbd restart from the terminal and the usershares worked from nautilus like they should.
HTH.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.