Changing "df [device]" behaviour (Re: /bin/df set-gid operator)

2001-04-21 Thread Paul Herman
On Sun, 22 Apr 2001, Bruce Evans wrote: > In FreeBSD, mount privilege is controlled by the vfs.usermount > sysctl (default: off), so df must still be setgid operator to work > on devices. > > The mount() method is better because can work on work on all types > of filesystems that the kernel under

Re: /bin/df set-gid operator

2001-04-21 Thread Bruce Evans
On Sat, 21 Apr 2001, Paul Herman wrote: > This brings up a slightly related question: Now that "cooked" block > devices have been abolished, wouldn't it be a good idea to get rid of > the quick mount(2)/umount(2) of /tmp/df.XX to stat the file > system? Something like the following patch.

Re: /bin/df set-gid operator

2001-04-21 Thread Paul Herman
Sorry to follow up on my own mail... On Sat, 21 Apr 2001, Paul Herman wrote: > This brings up a slightly related question: Now that block > devices have been abolished, wouldn't it be a good idea to get rid > of the quick mount(2)/umount(2) of /tmp/df.XX to stat the file > system? I see n

Re: /bin/df set-gid operator

2001-04-21 Thread Paul Herman
On Sat, 21 Apr 2001, Oliver Fromme wrote: > Paul Herman <[EMAIL PROTECTED]> wrote: > > On Sat, 21 Apr 2001, Oliver Fromme wrote: > > > I'm wondering why /bin/df is set-gid to the operator group > > > by default. > > > > It's to df filesystems that aren't mounted. Try "df /dev/ad0s1a" (or >

Re: /bin/df set-gid operator

2001-04-21 Thread Oliver Fromme
Paul Herman <[EMAIL PROTECTED]> wrote: > On Sat, 21 Apr 2001, Oliver Fromme wrote: > > I'm wondering why /bin/df is set-gid to the operator group > > by default. > > It's to df filesystems that aren't mounted. Try "df /dev/ad0s1a" (or > whatever) as user nobody with chmod 555 /bin/df. Ah,

Re: /bin/df set-gid operator

2001-04-21 Thread Paul Herman
On Sat, 21 Apr 2001, Oliver Fromme wrote: > I'm wondering why /bin/df is set-gid to the operator group > by default. It's to df filesystems that aren't mounted. Try "df /dev/ad0s1a" (or whatever) as user nobody with chmod 555 /bin/df. -Paul. To Unsubscribe: send mail to [EMAIL PROTECTED] wit

/bin/df set-gid operator

2001-04-21 Thread Oliver Fromme
Hi, This is probably the wrong list, but I have no idea where else to ask, and -current is also affected, so ... I'm wondering why /bin/df is set-gid to the operator group by default. I have tried to remove the s bit, and it is still working fine. Looking at the source code didn't give me a cl