* sgid directories w/DU4.0?
@ 1996-08-05 4:00 Andrew Congdon
1996-08-06 4:00 ` Peter Bloecher
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Congdon @ 1996-08-05 4:00 UTC (permalink / raw)
Anyone know why it is that if I create a file in /tmp (or /var/tmp)
the file belongs to group "system" which I don't belong to? I could
understand it if the sgid bit was on on the directory but it isn't.
This "feature" makes it annoying when trying to look at files (eg.
daemon logs) since the umask for our group doesn't include other
permissions.
Is there some way to change this behaviour?
I'd also like to enable the sgid permission on directories behaviour
that I am used to on other machines: when creating a directory in a
directory where the sgid bit is on the new directory also has the
sgid bit on. Anyone know how to do this? The file (or directory) is
created in the group set by the directory but the sgid bit is not
propagated unless it is a NFS filesystem!
--
Andrew.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sgid directories w/DU4.0?
1996-08-05 4:00 sgid directories w/DU4.0? Andrew Congdon
@ 1996-08-06 4:00 ` Peter Bloecher
1996-08-07 4:00 ` Andrew Congdon
0 siblings, 1 reply; 3+ messages in thread
From: Peter Bloecher @ 1996-08-06 4:00 UTC (permalink / raw)
Cc: Peter.Bloecher
Andrew Congdon wrote:
>
> Anyone know why it is that if I create a file in /tmp (or /var/tmp)
> the file belongs to group "system" which I don't belong to? I could
> understand it if the sgid bit was on on the directory but it isn't.
>
> This "feature" makes it annoying when trying to look at files (eg.
> daemon logs) since the umask for our group doesn't include other
> permissions.
>
> Is there some way to change this behaviour?
>
> I'd also like to enable the sgid permission on directories behaviour
> that I am used to on other machines: when creating a directory in a
> directory where the sgid bit is on the new directory also has the
> sgid bit on. Anyone know how to do this? The file (or directory) is
> created in the group set by the directory but the sgid bit is not
> propagated unless it is a NFS filesystem!
>
> --
> Andrew.
Set the sys_v_mode "tunable" in your kernel configuration file
(under /sys/conf), like in
#
# enable System V file/directory creation behaviour
#
sys_v_mode 1
and recompile your kernel (using doconfig -c YOUR_KERNEL_CONFIG_FILE).
This will cure both problems. BTW, this is vaguely mentioned
in man 2 mkdir and somewhere in the Bookreader documentation.
/Peter
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: sgid directories w/DU4.0?
1996-08-06 4:00 ` Peter Bloecher
@ 1996-08-07 4:00 ` Andrew Congdon
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Congdon @ 1996-08-07 4:00 UTC (permalink / raw)
In article <3206DDEB.41C6@eedn.ericsson.se>,
Peter Bloecher <Peter.Bloecher@eedn.ericsson.se> wrote:
>This will cure both problems. BTW, this is vaguely mentioned
>in man 2 mkdir and somewhere in the Bookreader documentation.
>
>/Peter
Thanks for the info, silly me I was looking at mkdir(1)! IMHO, the
HTML documentation is a great leap forward from dxbook but I hadn't
come across this pearl.
--
Andrew.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-08-07 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-05 4:00 sgid directories w/DU4.0? Andrew Congdon
1996-08-06 4:00 ` Peter Bloecher
1996-08-07 4:00 ` Andrew Congdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox