Date: Fri, 23 May 1997 14:37:21 +0200 (MET DST) From: Zahemszky Gabor <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org (FreeBSD questions) Cc: shawn@luke.cpl.net Subject: Re: Problem! Message-ID: <199705231237.OAA00450@CoDe.hu> In-Reply-To: <Pine.BSF.3.95.970521200932.975A-100000@luke.cpl.net> from Shawn Ramsey at "May 21, 97 08:13:05 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> We have a slight problem. Accidentaly, the command chown /*/* (or > something like that) was performed as root. :( /dev, amoung others have > the wrong owner. Do all the /dev files have the same owner? Root? Bin? > What? > > What should most executable files have, such as /bin, and /sbin? Do I need > to reinstall, or can I assign all the system executables root w/o mishap? Try mtree(8), with the files in /etc/mtree. Something like mtree -f /etc/mtree/BSD.root.dist -U -p / mtree -f /etc/mtree/BSD.usr.dist -U -p /usr mtree -f /etc/mtree/BSD.var.dist -U -p /var mtree -f /etc/mtree/BSD.local.dist -U -p /usr/local ... Bye, Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705231237.OAA00450>