Re: [SLUG] mkdir

2012-02-16 Thread Matthew Hannigan
Grant Street gra...@al.com.au gave the answer previously, chmod 2755 topdir which sets the setgid (the 2) and relaxed perms (the 755) But this didnt fix the existing dirs group ownership. Also you might want 775 instead of 755. See below for my take. On Wed, Feb 15, 2012 at 08:44:41PM

Re: [SLUG] mkdir

2012-02-16 Thread Cal Edwards
Hi. try chmod 2775 topdir that will set the permissions on the subdir correctly without doing a chown. consider setting the primary group to be the same accross the whole family. that way whenever a file is created it will be the correct group. This does what I wanted. It maintains the

Re: [SLUG] mkdir

2012-02-16 Thread Cal Edwards
Hi. On Tue, Feb 14, 2012 at 10:25 AM, K L k...@attitia.com wrote: Been a while since I set up my samba shares, but can't you just use the force group and dir mode (may not be exact names. man smb.conf will tell) such that the group and group perms are set when you create them? Unless of

Re: [SLUG] mkdir

2012-02-16 Thread Cal Edwards
Hi. On Wed, Feb 15, 2012 at 8:44 PM, Glen Turner g...@gdt.id.au wrote: Cal Edwards wrote: I want to be able to create a new subdir and be sure that it has the same ownership as topdir. It depends how the directory is created. If they use mkdir from the shell then the best you can do is

Re: [SLUG] mkdir

2012-02-16 Thread Cal Edwards
Hi On Wed, Feb 15, 2012 at 10:20 PM, Troy Rollo t...@parrycarroll.com.auwrote: ** On Wednesday 15 February 2012 21:14:41 Glen Turner wrote: Cal Edwards wrote: I want to be able to create a new subdir and be sure that it has the same ownership as topdir. It depends how the

Re: [SLUG] mkdir

2012-02-16 Thread Cal Edwards
Hi. On Fri, Feb 17, 2012 at 8:42 AM, Matthew Hannigan m...@zip.com.au wrote: Grant Street gra...@al.com.au gave the answer previously, chmod 2755 topdir which sets the setgid (the 2) and relaxed perms (the 755) But this didnt fix the existing dirs group ownership. Also you might

Re: [SLUG] mkdir

2012-02-15 Thread Glen Turner
Cal Edwards wrote: I want to be able to create a new subdir and be sure that it has the same ownership as topdir. It depends how the directory is created. If they use mkdir from the shell then the best you can do is to force the group to match the parent directory -- search for sticky bit on

Re: [SLUG] mkdir

2012-02-15 Thread Troy Rollo
On Wednesday 15 February 2012 21:14:41 Glen Turner wrote: Cal Edwards wrote: I want to be able to create a new subdir and be sure that it has the same ownership as topdir. It depends how the directory is created. If they use mkdir from the shell then the best you can do is to force the

Re: [SLUG] mkdir

2012-02-13 Thread Grant Street
On 14/02/12 10:26, Cal Edwards wrote: Hi. I want to create directories and files under a specific directory with specific ownerships and permissions. The problem is that I create directories in a hierarchy of images from digital cameras. My family members need to be able to access those across

Re: [SLUG] mkdir and $?

2001-07-06 Thread getadog
On Fri, Jul 06, 2001 at 09:20:52PM +1000, Jeff Waugh wrote: This is annoying - if anyone knows why this is happening, please tell me. I'm only interested in the errno, not the error (which is not set with -p, as stated in the docs). For some reason, testing if $? = 0 is always false, even

RE: [SLUG] mkdir and $?

2001-07-06 Thread Greg Hosler
which distro, and which eratta applied ? -G On 06-Jul-01 Jeff Waugh wrote: This is annoying - if anyone knows why this is happening, please tell me. I'm only interested in the errno, not the error (which is not set with -p, as stated in the docs). For some reason, testing if $? = 0 is

Re: [SLUG] mkdir and $?

2001-07-06 Thread Jeff Waugh
quote who=Greg Hosler which distro, and which eratta applied ? Shouldn't matter - I was doing something embarrassingly silly. - Jeff -- I get my kicks above the .sigline, sunshine. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More

Re: [SLUG] mkdir and $?

2001-07-06 Thread Greg Hosler
On 06-Jul-01 Jeff Waugh wrote: quote who=Greg Hosler which distro, and which eratta applied ? Shouldn't matter actually, believe it or not it might matter. There was a bug in the errata fileutils to RH 7.0 in mkdir that caused it to return false errors. that particular bug does not

Re: [SLUG] mkdir and $?

2001-07-06 Thread getadog
quote who=Greg Hosler which distro, and which eratta applied ? You don't know what distro Jeff runs? Where have you been? On Fri, Jul 06, 2001 at 10:46:24PM +1000, Jeff Waugh wrote: Shouldn't matter - I was doing something embarrassingly silly. Wha? No plug? grep -ci debian IN.slug 5562

Re: [SLUG] mkdir and $?

2001-07-06 Thread Jeff Waugh
quote who=Greg Hosler Your description dounded alot like that particular bug. It sounded more like me doing something that should never have worked in the first place. ;) - Jeff -- Perl - The Movie. Starring