Re: [Samba] Permission issue (I think)
No love. I'm getting exactly the same thing. I have attached the log file. I blew away the log file right before I attempted the operation (I attempted a rename). It's interesting, smbstatus still reports RDONLY. I removed NT ACL support entirely (and the tcp buffer sizes) and bounced the service. -Original Message- From: Jeremy Allison [mailto:j...@samba.org] Sent: Wednesday, August 11, 2010 10:32 AM To: Massner, Keith Cc: samba@lists.samba.org Subject: Re: [Samba] Permission issue (I think) On Wed, Aug 11, 2010 at 10:27:22AM -0700, Massner, Keith wrote: > I'm attempting to modify/delete files from Vista and am getting an > intermittent error that permission is denied. Frustrating. I can > create new files all day long. I might be able to rename it once or > twice. But then I'll get a permission denied error. I can NEVER > delete a file I created. > > What I want is a share that is world readable, writeable, modifiable, > etc. Yes, I know its insecure. But its just me. > > I'm using Samba 3.5.4 on CentOS 5.5, 32 bit. Yep, I have set all file > permissions and ownership. Also of note is that the same directory is > exported for NFS (and mounted via nfs on a media player when its > turned on). NFS has no permissions problems. Lsattr shows nothing interesting. > > A sample of smbstatus is: > 4667 500DENY_NONE 0x20089 RDONLY NONE > /storage1/SharedMedia Music/Alison Krauss/Lonely Runs Both Ways/02 > Restless.mp3 Wed Aug 11 01:44:54 2010 > > Here's my stuff: > [global] > log file = /var/log/samba/%m.log ; Take this out once you > figure this crap out. > log level = 10 > netbios name = marvin > interfaces = 192.168.2.11/24 > usershare owner only = false > null passwords = yes > server string = Samba Server Version %v (%h) > security = SHARE > encrypt passwords = Yes > username map = /etc/samba/smbusers > max log size = 50 > preferred master = Yes > acl check permissions = No > guest ok = Yes > guest only = Yes > nt acl support = No This may be your problem. We *never* test without NT ACL support being set to yes anymore. This option should really be removed. Remove it from your smb.conf and retry. > cups options = raw > load printers = No > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 > SO_SNDBUF=65536 Second guessing the kernel on SNDBUF and RCVBUF sizes is also a bad idea. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Permission issue (I think)
No love. I'm getting exactly the same thing. It's interesting, smbstatus still reports RDONLY. I removed NT ACL support entirely (and the tcp buffer sizes) and bounced the service. -Original Message- From: Jeremy Allison [mailto:j...@samba.org] Sent: Wednesday, August 11, 2010 10:32 AM To: Massner, Keith Cc: samba@lists.samba.org Subject: Re: [Samba] Permission issue (I think) On Wed, Aug 11, 2010 at 10:27:22AM -0700, Massner, Keith wrote: > I'm attempting to modify/delete files from Vista and am getting an > intermittent error that permission is denied. Frustrating. I can > create new files all day long. I might be able to rename it once or > twice. But then I'll get a permission denied error. I can NEVER > delete a file I created. > > What I want is a share that is world readable, writeable, modifiable, > etc. Yes, I know its insecure. But its just me. > > I'm using Samba 3.5.4 on CentOS 5.5, 32 bit. Yep, I have set all file > permissions and ownership. Also of note is that the same directory is > exported for NFS (and mounted via nfs on a media player when its > turned on). NFS has no permissions problems. Lsattr shows nothing interesting. > > A sample of smbstatus is: > 4667 500DENY_NONE 0x20089 RDONLY NONE > /storage1/SharedMedia Music/Alison Krauss/Lonely Runs Both Ways/02 > Restless.mp3 Wed Aug 11 01:44:54 2010 > > Here's my stuff: > [global] > log file = /var/log/samba/%m.log ; Take this out once you > figure this crap out. > log level = 10 > netbios name = marvin > interfaces = 192.168.2.11/24 > usershare owner only = false > null passwords = yes > server string = Samba Server Version %v (%h) > security = SHARE > encrypt passwords = Yes > username map = /etc/samba/smbusers > max log size = 50 > preferred master = Yes > acl check permissions = No > guest ok = Yes > guest only = Yes > nt acl support = No This may be your problem. We *never* test without NT ACL support being set to yes anymore. This option should really be removed. Remove it from your smb.conf and retry. > cups options = raw > load printers = No > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 > SO_SNDBUF=65536 Second guessing the kernel on SNDBUF and RCVBUF sizes is also a bad idea. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Permission issue (I think)
On Wed, Aug 11, 2010 at 10:27:22AM -0700, Massner, Keith wrote: > I'm attempting to modify/delete files from Vista and am getting an > intermittent error that permission is denied. Frustrating. I can > create new files all day long. I might be able to rename it once or > twice. But then I'll get a permission denied error. I can NEVER delete > a file I created. > > What I want is a share that is world readable, writeable, modifiable, > etc. Yes, I know its insecure. But its just me. > > I'm using Samba 3.5.4 on CentOS 5.5, 32 bit. Yep, I have set all file > permissions and ownership. Also of note is that the same directory is > exported for NFS (and mounted via nfs on a media player when its turned > on). NFS has no permissions problems. Lsattr shows nothing interesting. > > A sample of smbstatus is: > 4667 500DENY_NONE 0x20089 RDONLY NONE > /storage1/SharedMedia Music/Alison Krauss/Lonely Runs Both Ways/02 > Restless.mp3 Wed Aug 11 01:44:54 2010 > > Here's my stuff: > [global] > log file = /var/log/samba/%m.log > ; Take this out once you figure this crap out. > log level = 10 > netbios name = marvin > interfaces = 192.168.2.11/24 > usershare owner only = false > null passwords = yes > server string = Samba Server Version %v (%h) > security = SHARE > encrypt passwords = Yes > username map = /etc/samba/smbusers > max log size = 50 > preferred master = Yes > acl check permissions = No > guest ok = Yes > guest only = Yes > nt acl support = No This may be your problem. We *never* test without NT ACL support being set to yes anymore. This option should really be removed. Remove it from your smb.conf and retry. > cups options = raw > load printers = No > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 > SO_SNDBUF=65536 Second guessing the kernel on SNDBUF and RCVBUF sizes is also a bad idea. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Permission issue (I think)
I'm attempting to modify/delete files from Vista and am getting an intermittent error that permission is denied. Frustrating. I can create new files all day long. I might be able to rename it once or twice. But then I'll get a permission denied error. I can NEVER delete a file I created. What I want is a share that is world readable, writeable, modifiable, etc. Yes, I know its insecure. But its just me. I'm using Samba 3.5.4 on CentOS 5.5, 32 bit. Yep, I have set all file permissions and ownership. Also of note is that the same directory is exported for NFS (and mounted via nfs on a media player when its turned on). NFS has no permissions problems. Lsattr shows nothing interesting. A sample of smbstatus is: 4667 500DENY_NONE 0x20089 RDONLY NONE /storage1/SharedMedia Music/Alison Krauss/Lonely Runs Both Ways/02 Restless.mp3 Wed Aug 11 01:44:54 2010 Here's my stuff: [global] log file = /var/log/samba/%m.log ; Take this out once you figure this crap out. log level = 10 netbios name = marvin interfaces = 192.168.2.11/24 usershare owner only = false null passwords = yes server string = Samba Server Version %v (%h) security = SHARE encrypt passwords = Yes username map = /etc/samba/smbusers max log size = 50 preferred master = Yes acl check permissions = No guest ok = Yes guest only = Yes nt acl support = No cups options = raw load printers = No socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 [SharedMedia] path = /storage1/SharedMedia force user = keith force group = keith read only = No ; acl group control = Yes force create mode = 0666 force directory mode = 6777 directory security mask = 6777 force unknown acl user = Yes map readonly = permissions Any thoughts? Thanks, Keith -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba]Permission issue
Doug VanLeuven napisał(a): [cut] From man chmod: STICKY DIRECTORIES When the sticky bit is set on a directory, files in that directory may be unlinked or renamed only by root or their owner. Without the sticky bit, anyone able to write to the directory can delete or rename files. The sticky bit is commonly found on directories, such as /tmp, that are world-writable. What this means is the sticky bit has to be set on the parent directory, which in your case is the directory being shared. Regards, Doug Thank you, now I understand the rules. All the time I have been thinking, that "sticky bit" should be inherited by the files created in folder with "sticky bit". -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba]Permission issue
TSZ wrote: Michael Gasch napisał(a): and you can solve this with the sticky bit http://docsrv.sco.com:507/en/OSAdminG/ssC.stickydirs.html you could also try to play with "map read only (S)" parameter. Thank you for your help and link. I know the "sticky bit", but I don't know how to implement it for new files created in folder for everyone. I've tried with the "sticky bit" for this folder and create mask = 4555, but it doesn't work. Jeremy Allison wrote: On Sat, Jul 01, 2006 at 12:20:42AM +0200, TSZ wrote: Hello, I am beginner of Samba, but today I have made update of Samba to RC3. I have two users:root and tomek. tomek is in linux groups: smbadmins, smbusers and nothing more. There is a folder for everyone and file made by the root in it: total 4 -rw--- 1 root root 1195 Jul 1 00:11 group.txt User tomek is not able to read the file, but is able to delete it, why? I have no entries in group map. Because in UNIX, permission to delete a file is granted by the permissions on the directory containing it, not on the file itself. From man chmod: STICKY DIRECTORIES When the sticky bit is set on a directory, files in that directory may be unlinked or renamed only by root or their owner. Without the sticky bit, anyone able to write to the directory can delete or rename files. The sticky bit is commonly found on directories, such as /tmp, that are world-writable. What this means is the sticky bit has to be set on the parent directory, which in your case is the directory being shared. Regards, Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba]Permission issue
Michael Gasch napisał(a): and you can solve this with the sticky bit http://docsrv.sco.com:507/en/OSAdminG/ssC.stickydirs.html you could also try to play with "map read only (S)" parameter. Thank you for your help and link. I know the "sticky bit", but I don't know how to implement it for new files created in folder for everyone. I've tried with the "sticky bit" for this folder and create mask = 4555, but it doesn't work. Jeremy Allison wrote: On Sat, Jul 01, 2006 at 12:20:42AM +0200, TSZ wrote: Hello, I am beginner of Samba, but today I have made update of Samba to RC3. I have two users:root and tomek. tomek is in linux groups: smbadmins, smbusers and nothing more. There is a folder for everyone and file made by the root in it: total 4 -rw--- 1 root root 1195 Jul 1 00:11 group.txt User tomek is not able to read the file, but is able to delete it, why? I have no entries in group map. Because in UNIX, permission to delete a file is granted by the permissions on the directory containing it, not on the file itself. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba]Permission issue
and you can solve this with the sticky bit http://docsrv.sco.com:507/en/OSAdminG/ssC.stickydirs.html you could also try to play with "map read only (S)" parameter. greez Jeremy Allison wrote: On Sat, Jul 01, 2006 at 12:20:42AM +0200, TSZ wrote: Hello, I am beginner of Samba, but today I have made update of Samba to RC3. I have two users:root and tomek. tomek is in linux groups: smbadmins, smbusers and nothing more. There is a folder for everyone and file made by the root in it: total 4 -rw--- 1 root root 1195 Jul 1 00:11 group.txt User tomek is not able to read the file, but is able to delete it, why? I have no entries in group map. Because in UNIX, permission to delete a file is granted by the permissions on the directory containing it, not on the file itself. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba]Permission issue
On Sat, Jul 01, 2006 at 12:20:42AM +0200, TSZ wrote: > Hello, > > I am beginner of Samba, but today I have made update of Samba to RC3. I > have two users:root and tomek. tomek is in linux groups: smbadmins, > smbusers and nothing more. There is a folder for everyone and file made > by the root in it: > > total 4 -rw--- 1 root root 1195 Jul 1 00:11 group.txt > > User tomek is not able to read the file, but is able to delete it, why? > I have no entries in group map. Because in UNIX, permission to delete a file is granted by the permissions on the directory containing it, not on the file itself. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba]Permission issue
Hello, I am beginner of Samba, but today I have made update of Samba to RC3. I have two users:root and tomek. tomek is in linux groups: smbadmins, smbusers and nothing more. There is a folder for everyone and file made by the root in it: total 4 -rw--- 1 root root 1195 Jul 1 00:11 group.txt User tomek is not able to read the file, but is able to delete it, why? I have no entries in group map. -- Pozdrawiam, "Przeznaczenie - wymówka głupca w chwili klęski", Wywrotowiec -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba permission issue
Hello I use Windows XP Pro on almost all of the desktops I need to access the linux server. I also have one Apple Mac G5 that uses OS 10.4. I have various applications I use to access the server. One of the biggest ones I use is OpenOffice. If I create a new document on one of our windows XP desktops like a spreadsheet then save it to a shared folder on the server the desktop that created that file can go back later and edit that file and save the changes back on the server with out any problem. HoIver if any of the other XP desktops go to edit the file they cannot save the file with the changes. They can copy it they can delete it but cannot edit it. The Mac hoIver can edit the file and save the changes without any problem. HoIver once the Mac has changed that file none of the XP desktops can then edit and save the file, including the original desktop that created the file. This now appears to be the case no matter what program you use. The files that I could edit before Ire files that my desktop created originally. It appears to be some strange Samba setting that I am not aware of that is not letting us have full access to our files . I need to be able to edit and change these files no matter what machine I am using as long as the user is one of the user group. Thanks Regards, Komal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Permission Issue
On Friday 22 October 2004 08:36, Brian Witowski wrote: > Im having a problem with permissions/ownership changing. I have a hard > drive which is mounted in /mnt/hda3. That's where I keep my home folders, > netlogon etc. Samba works great for a while, then the permissions change > on the mount point and I have to go in and change them back. What would > cause this to happen? That's really interesting. Would you document this please. Suggest you set the "log level = 3" and search the samba log files to see where samba makes this change. This should not happen. If you can find show us logs that demonstrate this happening I am sure someone will be able to fix it. - John T. -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 OpenLDAP by Example, ISBN: 0131488732 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Permission Issue
Im having a problem with permissions/ownership changing. I have a hard drive which is mounted in /mnt/hda3. That's where I keep my home folders, netlogon etc. Samba works great for a while, then the permissions change on the mount point and I have to go in and change them back. What would cause this to happen? Brian -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba