Re: Command to rechown
- From: Kevin Kinsey <kdk@xxxxxxxxxx>
- Date: Tue, 30 Sep 2008 08:00:36 -0500
Mike Price wrote:
I had to ( chown -R /etc/ ) I to edit the ( pf.conf ), how do I rechowm or
restore ( /etc ) ?
Can you please send me the command.
Hmm, why did you have to chown an entire directory to edit
one file? su(1), and, perhaps even better, sudo(8) are meant
for such things AFAIK.
As for restoring permissions on /etc/, mtree(8) is your friend ... I'd recommend taking a look at the
manpage, however, because IANAE.
However, all disclaimers included, I *think* you want
% cd /
% mtree -U -f /etc/mtree/BSD.root.dist
Kevin Kinsey
--
It is now pitch dark. If you proceed, you will likely fall into a pit.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- Command to rechown
- From: Mike Price
- Command to rechown
- Prev by Date: Re: Optimal File System config for 2.5TB RAID5
- Next by Date: Re: Optimal File System config for 2.5TB RAID5
- Previous by thread: Command to rechown
- Next by thread: SPP & qmail
- Index(es):
Relevant Pages
|