README.privsep

Chris Adams cmadams at hiwaay.net
Tue Jun 25 10:09:19 EST 2002


Once upon a time, Damien Miller <djm at mindrot.org> said:
> On Tue, 2002-06-25 at 09:25, Jim Knoble wrote:
> 
> > I would rather say here:
> > 
> >           chown 0 /var/empty
> >           chgrp 0 /var/empty
> 
> I recall that numeric arguments to some OS's chown & chgrp fail.

chown `grep '^[^:]*:[^:]*:0:' /etc/passwd | head -1 | cut -d: -f1` /var/empty
chgrp `grep '^[^:]*:[^:]*:0:' /etc/group | head -1 | cut -d: -f1` /var/empty

I think that would cover everyone (at least if they use a Bourne shell
:-) ).
-- 
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.



More information about the openssh-unix-dev mailing list