Samba usershares & permissions problem

Rob Owens's picture

Forums: 

On Thu, May 26, 2011 at 05:34:28PM +0100, Alan Chandler wrote:
> I have a fairly simple requirement
>
> I am running Debian Unstable on my Desktop and I want to provide a
> folder for my Windows 7 laptop to deposit some files.
>
> I thought that the simplest approach would be using samba on its
> own, but I then discovered the existance of nautilus-share which
> should make it so much easier when I want to swap around things.
>
> I followed instructions in /usr/share/doc/nautilus-share, adding
> myself to the sambashare group and right clicking on an appropriate
> folder inside my home dir (several layers in) and adding sharing.
> Clicking on guests-allow.
>
> Checking the permissions of things
>
> /var/lib/samba/usershares is 1777 and owned by root:sambashare
>
> the file inside /var/lib/samba/usershare that represents my share
> has permissions 644 and is owned by alan:alan (ie me). Its contents
> include the path to my share and the following two lines.
>
Are you sure that all the paths leading up to the shared file have
proper permissions? If a 644 file is inside a 700 directory, nobody
will be able to get to it.

-Rob

Samba usershares & permissions problem

AlbMilla's picture

I had that problem and I solved it following these instructions:

- http://forums.debian.net/viewtopic.php?f=16&t=60620

On Sun, May 29, 2011 at 14:46, Rob Owens wrote:
> On Thu, May 26, 2011 at 05:34:28PM +0100, Alan Chandler wrote:
>> I have a fairly simple requirement
>>
>> I am running Debian Unstable on my Desktop and I want to provide a
>> folder for my Windows 7 laptop to deposit some files.
>>
>> I thought that the simplest approach would be using samba on its
>> own, but I then discovered the existance of nautilus-share which
>> should make it so much easier when I want to swap around things.
>>
>> I followed instructions in /usr/share/doc/nautilus-share, adding
>> myself to the sambashare group and right clicking on an appropriate
>> folder inside my home dir (several layers in) and adding sharing.
>> Clicking on guests-allow.
>>
>> Checking the permissions of things
>>
>> /var/lib/samba/usershares is 1777 and owned by root:sambashare
>>
>> the file inside /var/lib/samba/usershare that represents my share
>> has permissions 644 and is owned by alan:alan (ie me).  Its contents
>> include the path to my share and the following two lines.
>>
> Are you sure that all the paths leading up to the shared file have
> proper permissions?  If a 644 file is inside a 700 directory, nobody
> will be able to get to it.
>
> -Rob
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20110529124656.GA18045@aurora.owens.net
>
>