nautilus "folder sharing" fails to share a directory

Bug #332241 reported by Viktor Kojouharov
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus-share (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: nautilus-share

On a new installation of Jaunty Jackalope (updated to the latest packages) without any modifications, Nautilus fails to share a directory using the Sharing Options context item.

The services install fine, and I do restart the session.

Upon selecting the desired options ("Share this forlder" and "Guest access" in this case), the dialog presents this error:

'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. The connection was refused. Maybe smbd is not running.

This should work without me doing anything, yet it doesn't at this stage.

$ id
uid=1000(urandom) gid=1000(urandom) groups=4(adm),20(dialout),24(cdrom),46(plugdev),106(lpadmin),119(admin),121(sambashare),1000(urandom)

$ /etc/init.d/samba status
 * nmbd is running
 * smbd is not running

$ apt-cache policy nautilus-share
nautilus-share:
  Installed: 0.7.2-0ubuntu7

$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04

Revision history for this message
darkraven (jasminr) wrote :

you still probably need samba installed. every should work out of the box. I KNOW.

try the nvidia drivers . do you get 180 yet?

samba is linux' file and printer sharing. without it -it doesn't work.

it doesnt matter how many GUI apps you make, they all rely on samba package being installed. install the server, not the client. that WILL solve your problem. configuration is in the admin drop-down menu under system.

sorry, but this is the way it always has been. some things never change with *nix boxes.

Revision history for this message
Viktor Kojouharov (vkojouharov) wrote :

samba is installed, probably when I accepted the option to install the additional services.

apt-cache policy samba
samba:
  Installed: 2:3.3.0-3ubuntu2

And even if it wasn't, it's a bug to not install it if you opt to have the services installed.

Revision history for this message
Viktor Kojouharov (vkojouharov) wrote :

This issue has been fixed in one of the updates.

Changed in nautilus-share:
status: New → Fix Released
Revision history for this message
Brett Alton (brett-alton-deactivatedaccount) wrote :

This has just effected me on an up-to-date Jaunty system, trying to share a folder for the first time.

I check if all the required samba packages were installed and they are.

Here is my error:

"'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. The connection was refused. Maybe smbd is not running."

Revision history for this message
carlosLang (carlos-lang) wrote :
Download full text (4.1 KiB)

I might have found something interesting about this bug.

This is also affecting me, after i installed Ubuntu 9.10.

I followed all the recommendations on this and other, similar thereads, elsewhere.
I produced a detail of my config (below), yet while doing it i noticed the following:

Even after i either wait for more than 1 minute, or send a HUP signal to the smbd daemon or logout-login, even restart the whole computer,
the following lines on my /etc/samba/smb.conf file are
NOT shown up by the testparm -s:

 usershare path = /var/lib/samba/usershares
 usershare owner only = yes

Is this the cause for the issue i have? Could this be the source of the issue for so many other users?

config detail:

nautilus-share version: 0.7.2-12

$ id
uid=1000(carlos) gid=1000(carlos) groups=4(adm),20(dialout),24(cdrom),46(plugdev),106(lpadmin),121(admin),122(sambashare),1000(carlos)

carlos@carlos-desktop:~$ ps -ef | grep smbd
root 1562 1 0 12:05 ? 00:00:00 /usr/sbin/smbd -D
root 1625 1562 0 12:05 ? 00:00:00 /usr/sbin/smbd -D
carlos 2172 2152 0 12:28 pts/0 00:00:00 grep smbd
carlos@carlos-desktop:~$ sudo /etc/init.d/samba status
[sudo] password for carlos:
 * nmbd is running
 * smbd is running
carlos@carlos-desktop:~$ dpkg -l | egrep "samba|smbclient|nautilus-share"
ii gadmin-samba 0.2.7-2 GTK+ configuration tool for samba
ii libsmbclient 2:3.4.0-3ubuntu5 shared library for communication with SMB/CI
ii nautilus-share 0.7.2-12 Nautilus extension to share folder using Sam
ii python-samba 4.0.0~alpha8+git20090718-1 Python bindings for Samba
ii samba 2:3.4.0-3ubuntu5 SMB/CIFS file, print, and login server for U
ii samba-common 2:3.4.0-3ubuntu5 common files used by both the Samba server a
ii samba-common-bin 2:3.4.0-3ubuntu5 common files used by both the Samba server a
ii samba-doc 2:3.4.0-3ubuntu5 Samba documentation
ii samba-ldb-tools 4.0.0~alpha8+git20090718-1 LDAP-like embedded database - tools
ii smbclient 2:3.4.0-3ubuntu5 command-line SMB/CIFS clients for Unix
ii system-config-samba 1.2.63-0ubuntu4 GUI for managing samba shares and users
carlos@carlos-desktop:~$ testparm -s
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
 workgroup = LANGCLACHAR
 server string = %h server (Samba, Ubuntu)
 interfaces = 192.168.2.23/24
 bind interfaces only = Yes
 security = SHARE
 map to guest = Bad User
 obey pam restrictions = Yes
 guest account = carlos
 pam passw...

Read more...

Revision history for this message
Ruslan Selimov (akapipo103xtband) wrote :

Interfaces must to listen 127.0.0.1 too.

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.