Re: Command to rechown



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"



Relevant Pages

  • Re: Need help - SQL Express 2005 (Beta 2) - where to start ?
    ... AFAIK, the current express version does not come with a tool - you'd ... have to do it all with the command line tools. ... Serious about building a career as .NET Developer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: nistoldif
    ... when I google for this. ... AFAIK, nistoldif is a command that is unique to AIX. ...
    (Fedora)
  • Re: squid snmp timeout [solved]
    ... > de facto only version 1 works AFAIK. ... > This command returns some information, but I dont know how to get more ... the righteous forsaken, nor his children begging ...
    (Debian-User)
  • Re: Contacts filter link
    ... afaik, none of the internal apps have command line switch options, or, if they do, know one knows about them. ...
    (microsoft.public.pocketpc)
  • Re: send emails with attachments
    ... past, well i wrote this code and works but, How Can I attach a file, ... AFAIK it is not possible. ... Your command calls default MAPI client's message form filled with your data. ...
    (microsoft.public.fox.programmer.exchange)