[plug] Groups and files
John Summerfield
summer at os2.ami.com.au
Fri Dec 17 07:25:03 WST 1999
> On Thu, 16 Dec 1999, Damion Hill wrote:
>
> > Evening All,
> > I'm wondering if there is a way to force files within a given directory
> > structure to have a specific user.group combination?
>
> There used to be a way to set a bit on a directory, and all files created
> in it would inherit the group from the directory. I think this is a
> BSD-ism. Is there any way to do this in Linux? I'd search, but have no
> idea what its called.
I thought this too. Not knowing which bit, I tried this:
[summer at possum summer]$ dir -dl test
drwsrwxrwt 2 summer mail 1024 Dec 17 07:13 test
[summer at possum summer]$ cd test
[summer at possum test]$ >test3
[summer at possum test]$ dir -l
total 0
-rw-rw-r-- 1 summer summer 0 Dec 17 07:14 test3
[summer at possum test]$ dir -la
total 10
drwsrwxrwt 2 summer mail 1024 Dec 17 07:13 .
drwxr-xr-x 123 summer summer 9216 Dec 17 07:13 ..
-rw-rw-r-- 1 summer summer 0 Dec 17 07:14 test3
[summer at possum test]$ dir -lan
total 10
drwsrwxrwt 2 500 12 1024 Dec 17 07:13 .
drwxr-xr-x 123 500 500 9216 Dec 17 07:13 ..
-rw-rw-r-- 1 500 500 0 Dec 17 07:14 test3
[summer at possum test]$
As you can see, it did not work. I rather thought that, if anything would
work, turning on all bits would.
--
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.
More information about the plug
mailing list