Date: Tue, 4 Jun 1996 17:10:51 +0000 (GMT) From: Gabor Zahemszky <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org Cc: dbabler@Rigel.orionsys.com Subject: Re: Limiting access Message-ID: <199606041710.RAA00352@CoDe.CoDe.hu> In-Reply-To: <Pine.BSF.3.91.960601083047.10398A-100000@Rigel.orionsys.com> from "David Babler" at Jun 1, 96 08:37:23 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > didn't own them, they couldn't create any new files or subdirectories > > unless you gave them appropriate permissions---and then they'd be able > > to remove and create a new .rhosts file. (But some clever combination > > of owner, mode, and sticky bit might work.) chown root /bbs/home chown root /bbs/home/.rhosts chgrp bbsgroup /bbs/home chmod 1770 /bbs/home The chflags is better, but this works on most Unices. > After poring through the man pages, the solution to keeping the user from > being able to delete the .rhosts file is to set it so he doesn't own it > and performing the command (as su): chgflags schg .rhosts which then -- Gabor Zahemszky <zgabor@CoDe.hu> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606041710.RAA00352>
