Re: screwed up permissions for whole filesystem
On Sun, Jun 29, 2003 at 10:37:51PM -0400, Shawn Lamson wrote:
> On Fri, June 27 at 12:08 PM EDT
> Shri Shrikumar <shri@urbyte.com> wrote:
> > I did something very stupid -
> >
> > cd /root
> > chmod go-r .* -R
> >
> > thinking that it would change just the permissions on the files inside
> > the root folder. Now all my permissions are screwed up.
> >
> > Is there an easy way to rebuild the permissions on the files in the
> > system.
>
> Are you sure you messed up the whole filesystem that way? /root is
> roots homedir and according to chmod manpage:
'.*' expands to '.' '..' etc., which includes '/root/..', which is '/'.
Therefore chmod will have operated on the entire filesystem hierarchy.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: