Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Samba usershares & permissions problem

164 views
Skip to first unread message

Alan Chandler

unread,
May 26, 2011, 12:40:02 PM5/26/11
to
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.

usershare_acl=S-1-1-0:F
guest_ok=y


the directory I am pointing to (ie the one I am sharing) has ownership
alan:sambashare and 777 permissions.

When I scan the network in Windows 7 in normal mode, it can't find my
machine. However I am able to connect by entering \\Kanga (my machines
name) and then its sees it.

I can now read from this share, but not write to it.

Looking in the samba log (or more explicitly /var/log/samba/log.smbd I
see my windows laptop log in as user nobody and then get permission denied.

But I don't understand why. Can anyone help

--
Alan Chandler
http://www.chandlerfamily.org.uk


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/4DDE8114...@chandlerfamily.org.uk

William Hopkins

unread,
May 27, 2011, 12:20:02 AM5/27/11
to
On 05/26/11 at 05:34pm, 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.
You were initially correct. Running samba alone would be simpler from a troubleshooting perspective.
I suggest you try that, get it working (there are numerous tutorials on the web, forum posts, the archive for debian-user and probably a samba ML) and then compare the config to what nautilus-share is creating.

Also, more people are likely to be familiar with samba itself than nautilus-share.


>
> But I don't understand why. Can anyone help

Good luck!


--
Liam

signature.asc

Rob Owens

unread,
May 29, 2011, 8:50:02 AM5/29/11
to
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-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/20110529124...@aurora.owens.net

AlbMilla

unread,
May 29, 2011, 5:20:01 PM5/29/11
to
I had that problem and I solved it following these instructions:

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

Archive: http://lists.debian.org/BANLkTikrnwcOTPeu...@mail.gmail.com

Alan Chandler

unread,
May 31, 2011, 7:40:02 AM5/31/11
to

We I gave up on Nautilus share and just made a bog standard share,
specified within smb.conf. That seems to work well and easily meets my
needs, so will not pursue this further.

Thanks for the other comments in this thread


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4DE4D357...@chandlerfamily.org.uk

0 new messages