<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>26215</bug_id>
          
          <creation_ts>2011-09-01 21:22:00 +0400</creation_ts>
          <short_desc>usershares does not work with latest samba version</short_desc>
          <delta_ts>2011-09-02 17:41:57 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>thunar-shares-plugin</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Negulescu">alecs</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>alecs</cc>
    
    <cc>cas</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>124781</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Negulescu">alecs</who>
    <bug_when>2011-09-01 21:22:00 +0400</bug_when>
    <thetext>Usershares does not work with latest samba version. All configured ok, worked with 3.5.9, with 3.6.0 it does not work. All the options are greyed out.
If i manually add the share (in a textfile) in /var/lib/samba/usershares/, it is shared, so it is not a samba issue.

Also, if I use net usershare add/delete, it works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124799</commentid>
    <comment_count>1</comment_count>
    <who name="Mikhail Efremov">sem</who>
    <bug_when>2011-09-02 16:15:35 +0400</bug_when>
    <thetext>I can&apos;t reproduce this.

$ rpm -q samba  
samba-3.6.0-alt1

&gt; All the options are greyed out.

There should be some additional message if something goes wrong.
Are you sure that smb and nmb services is up?

&gt; Also, if I use net usershare add/delete, it works fine.

Very strange, thunar&apos;s plugin just uses the same commands, there are no any other magic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124802</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Negulescu">alecs</who>
    <bug_when>2011-09-02 17:41:57 +0400</bug_when>
    <thetext>[alecs@rainsoul ~]$ rpm -qa | grep -E &apos;samba-3|thunar-shares&apos;
thunar-shares-plugin-0.2.1-alt1.git20110411
samba-3.6.0-alt1
[alecs@rainsoul ~]$ groups 
alecs wheel fuse vboxusers hashman alecs_a alecs_b sambashare
[alecs@rainsoul ~]$ net usershare list &apos;*&apos;
torrents
muu
current2
movies
dan

It says: You may need to install samba, check your user permissions (usershare group) and re-login.
I also tried giving 777 to /var/lib/samba/usershares 
Also, with nautilus-share it works.


SOLUTION:
[alecs@rainsoul ~]$ net conf list
Failed to initialize the registry: WERR_ACCESS_DENIED
[root@rainsoul alecs]# ls -la /var/lib/samba/registry.tdb 
-rw------- 1 root root 81920 Sep  1 17:13 /var/lib/samba/registry.tdb
[root@rainsoul alecs]# chgrp sambashare /var/lib/samba/registry.tdb
[root@rainsoul alecs]# chmod 660 /var/lib/samba/registry.tdb
[root@rainsoul alecs]# ls -la /var/lib/samba/registry.tdb 
-rw-rw---- 1 root sambashare 81920 Sep  1 17:13 /var/lib/samba/registry.tdb

Works for me now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>