how can I lock a directory with chflags schg ?

2006-03-31 Thread Ensel Sharon
I have a directory with particular permissions on it, etc., that I want to make _absolutely sure_ never gets changed to different permissions. So I figured, easy, I'll just: chflags schg /dir but I notice that once you chflags schg a directory, you can no longer write to that directory

Re: chflags schg

2002-09-26 Thread Tony Landells
[EMAIL PROTECTED] said: When setting the the sytem/user immutable flag on a file is there anyway to tell by looking at the file's perms that it has been set immuteable ? Or is there a command to check this ? From man ls -o Include the file flags in a long (-l) output. so ls -lo

Re: chflags schg

2002-09-26 Thread Marcus Reid
On Fri, Sep 27, 2002 at 11:42:48AM +0930, Wilkinson,Alex wrote: Howdy all, When setting the the sytem/user immutable flag on a file is there anyway to tell by looking at the file's perms that it has been set immuteable ? Or is there a command to check this ? 'ls -lo' will show you the file

Re: mount read only || chflags schg sec level 2

2002-09-18 Thread Jimmy Lantz
At 09:55 2002-09-17 -0400, you wrote: Jimmy Lantz [EMAIL PROTECTED] writes: I'm looking for away to write protect some files whats the pros and cons with having the file on a seperate partition and mount that read-only or use the chflags schg and go to kernel security level 2? *Either

mount read only || chflags schg sec level 2

2002-09-17 Thread Jimmy Lantz
Hi, I'm looking for away to write protect some files whats the pros and cons with having the file on a seperate partition and mount that read-only or use the chflags schg and go to kernel security level 2? / Jim. NB. I'm sending this for the second time, and I do apologize if this in fact

Re: mount read only || chflags schg sec level 2

2002-09-17 Thread Matthew Seaman
On Tue, Sep 17, 2002 at 10:39:10AM +0200, Jimmy Lantz wrote: I'm looking for away to write protect some files whats the pros and cons with having the file on a seperate partition and mount that read-only or use the chflags schg and go to kernel security level 2? Either should work fine

Re: mount read only || chflags schg sec level 2

2002-09-17 Thread Lowell Gilbert
Jimmy Lantz [EMAIL PROTECTED] writes: I'm looking for away to write protect some files whats the pros and cons with having the file on a seperate partition and mount that read-only or use the chflags schg and go to kernel security level 2? *Either* way you probably want to raise