[Samba] Samba/Windows "you do not have permission to access this"

Daniel Müller mueller at tropenklinik.de
Thu Aug 2 01:34:20 MDT 2012


If there is a group accessing and writing the files set the sticky bit for
groups on the shell
Ex.: drwxrws---  82 root  Direktionv           4096 16. Jul 15:08
verwaltung
In your smb.conf:
read only=no
directory mask=2770
        force directory mode=2770
        create mask = 2770
        force create mode=2770
        force security mode=2770
        force directory security mode=2770
force group = Direktionv

This will guarantee all users who own the group can manage the files

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: Craig Cameron [mailto:Craig.Cameron at iongeo.com] 
Gesendet: Mittwoch, 1. August 2012 18:45
An: mueller at tropenklinik.de; samba at lists.samba.org
Betreff: RE: [Samba] Samba/Windows "you do not have permission to access
this"

Yes it's down as writeable = yes in smb.conf

If I change the file's ownership to myself it works - or if I then restart
winbind and samba it then becomes accessible too.

There's only an issue if the file owner is different from the person
accessing it.

Regards

Craig



-----Original Message-----
From: Daniel Müller [mailto:mueller at tropenklinik.de]
Sent: 01 August 2012 12:24
To: Craig Cameron; samba at lists.samba.org
Subject: AW: [Samba] Samba/Windows "you do not have permission to access
this"

Did you configure the share as writeable=yes?

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im
Auftrag von Craig Cameron
Gesendet: Mittwoch, 1. August 2012 13:07
An: samba at lists.samba.org
Betreff: [Samba] Samba/Windows "you do not have permission to access this"

I'm constantly running into the above error message when accessing files on
a samba share under Win7.

Files are fully accessible under Linux ie the group permissions are being
honoured but Windows just locks me out if I'm not the owner.

file: testfile
owner: anotheruser
group: mygroup
user::rwx
group::rwx
other::---
default:user::rwx
default:group::rwx
default:other::---

Has anyone else experienced this? And if so can anyone suggest a fix?

Thanks

Craig




________________________________


This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the original recipient or the person responsible
for delivering the email to the intended recipient, be advised that you have
received this email in error, and that any use, dissemination, forwarding,
printing, or copying of this email is strictly prohibited. If you received
this email in error, please immediately notify the sender and delete the
original.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


________________________________


This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the original recipient or the person responsible
for delivering the email to the intended recipient, be advised that you have
received this email in error, and that any use, dissemination, forwarding,
printing, or copying of this email is strictly prohibited. If you received
this email in error, please immediately notify the sender and delete the
original.




More information about the samba mailing list