Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Ubuntu 'net usershare' returned error 255

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-11-2009
Member
 
Join Date: Jul 2009
Posts: 58
Ubuntu 'net usershare' returned error 255

When i try to share a folder i get this error by Ubuntu 'net usershare' returned error 255: net usershare add: cannot share path /media/disk/disk 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. What is this error, I cannot share any folder on my Ubuntu, but everything works fine from Windows XP. Please help...
Reply With Quote
  #2  
Old 06-11-2009
Member
 
Join Date: Jan 2009
Posts: 289
Re: Ubuntu 'net usershare' returned error 255

Smb.conf is located in /etc/samba You need to configure this file so the you can share non-owned partitions, folders This is because ubuntu can only share the directories that are owned by ubuntu. You need to modify the samba configuration file to let Ubuntu share non-owned folders. I hope this helps...
Reply With Quote
  #3  
Old 06-11-2009
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 4,056
Re: Ubuntu 'net usershare' returned error 255

Open the smb.conf file with admin rights [open as root], Then add this line to the file :
Code:
usershare owner only = False
Now save the changes and close the file. Now reboot the system and see if can share the folder. This is how i configured my shares on a non-owned hard disk partition onto a windows network or you can say samba network... Hope this is helpful...
Reply With Quote
  #4  
Old 06-11-2009
Member
 
Join Date: Jul 2009
Posts: 58
Re: Ubuntu 'net usershare' returned error 255

Hello friends, thanks for helping me. Solomon, i did as you said, I add the line "usershare owner only = False" in my smb.conf file, but still i get this error message. One thing i noticed that the file doesn't allow me to save changes to it. It tells me i do not have enough permission or similar thing. How do i save the file? Please help...
Reply With Quote
  #5  
Old 06-11-2009
Member
 
Join Date: Jan 2009
Posts: 1,741
Re: Ubuntu 'net usershare' returned error 255

Ok, this is what you have to do :
  • Open terminal
  • type : "sudo gedit /etc/samba/smb.conf" without quotes
  • then in the file add "usershare owner only = False"
  • save the file [it will be saved now]
  • close the file
  • Try to share now
Does it work now? All the best!
Reply With Quote
  #6  
Old 06-11-2009
Member
 
Join Date: Jul 2009
Posts: 58
Re: Ubuntu 'net usershare' returned error 255

Quote:
Originally Posted by Rudra.J View Post
Ok, this is what you have to do :
  • Open terminal
  • type : "sudo gedit /etc/samba/smb.conf" without quotes
  • then in the file add "usershare owner only = False"
  • save the file [it will be saved now]
  • close the file
  • Try to share now
Does it work now? All the best!
Thanks for the help, I could save the file after editing, but still now luck in sharing i still get the same error. Any help? Please help, I two computers on which i have clean installed Windows and i want to restore the data which i have backed up from each computer's hard disk... Please help...
Reply With Quote
  #7  
Old 06-11-2009
Member
 
Join Date: Jan 2009
Posts: 1,741
Re: Ubuntu 'net usershare' returned error 255

Quote:
Originally Posted by Unix'EM View Post
Thanks for the help, I could save the file after editing, but still now luck in sharing i still get the same error. Any help? Please help, I two computers on which i have clean installed Windows and i want to restore the data which i have backed up from each computer's hard disk... Please help...
Again open the file smb.conf and remove the files which you added. Now goto the start of the file and slowly scroll down and look for a section called "Global". Now under this section add this lines : "usershare owner only = False". Now save the file again and no need to reboot the computer. Try again, the shares will be created now...
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Ubuntu 'net usershare' returned error 255"
Thread Thread Starter Forum Replies Last Post
Getting Error: HTTP Server returned error 501 in Avast ver. 4.8 Home edition Oruganti Networking & Security 4 27-11-2011 10:11 PM
WDM call returned error: 4200 Madison Operating Systems 4 29-01-2010 11:53 PM
The remote server returned an error: (400) Bad Request Drewski Software Development 3 15-05-2009 10:38 PM
The messaging interface returned an unknown error... jwgrim MS Office Support 0 21-03-2007 02:54 AM
Scan engine returned error 0x20000058 simmosimpkins Windows Security 3 09-07-2005 10:08 PM


All times are GMT +5.5. The time now is 03:27 AM.