I got it, I reproduced the bug:

If you define a share, the definition is made in /var/lib/samba/usershares.
But if you delete a Folder that is being shared, the definition in 
/var/lib/samba/usershares will not be removed.
After restarting all other shares will not be shown as "shared" (the share icon 
is not visible anymore) and thats the bug. This will only occur if the deleted 
folder was not only shared but hab writing permissions to other samba users 
(second option in the kontex menu)

So in other words: The bug is caused by deleting a shared folder, with
write permissions to other users.

A workaround as well as probably the final solution would be to delete all 
obsolent sharing definitions in /var/lib/samba/usershares.
Unfortunately I cannot fix this by myself (not a programmer yet) so please 
someone take that time.

If I enter "net usershare info" after the bug occurs this is the result
(I hat two folders shared, which are named "one" and "two", I deleted
"two"):

~$ net usershare info
[one]
path=/home/gnomeuser/Desktop/one
comment=
usershare_acl=Everyone:F,
guest_ok=n

info_fn: file /var/lib/samba/usershares/two is not a well formed usershare file.
info_fn: Error was Path is not a directory.
gnomeuser@gnomeuser-VM:~$ 


Also there is a simular bug that is probably related: If you share a default 
folder in your homefolder it gets the share icon above the default icon, but 
after restarting the shared icon is gone as well.
I could not reproduce this bug by using a new folder with an normal icon, which 
might have to to with the fact that the share icon in that case is below the 
icon I setted, while with the default icons the shared icon is above the 
default icon.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/917906

Title:
  Can't determine shared folders

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus-share/+bug/917906/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to