Re: Permissions problem

From: James Cooley (jcooley_at_fit.edu)
Date: 03/31/05

  • Next message: Burke, Thomas G.: "RE: Permissions problem"
    Date: Thu, 31 Mar 2005 08:43:31 -0500 (EST)
    To: "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    To reset permissions that were originally set by packages installed as
    rpm, try the following:

    for x in `rpm -qa`; do rpm --setperms $x; done

    This will change the permissions back to what they used to be.

    --James Cooley

    > El Jueves 31 Marzo 2005 15:07, Burke, Thomas G. escribió:
    >> All,
    >>
    >> I think I've screwed up... I accidently did a chmod -R 777 * from the
    >> "/" directory (thought I was somewhere else) as root. At the time, I
    >> thought nothing of it, as I figured that if everything had 777
    >> permissions,
    >> while it needed fixed, it wouldn't hose things up. I appear to be
    >> wrong.
    >> Mail has stopped working. I can't log in... Looking through the logs
    >> leeds me to believe that maybe the permissions are screwing things up,
    >> but
    >> I'm not sure.
    >>
    >> Any clues?
    >>
    >> Thanks,
    >> Tom
    >
    > In order to avoid attacks or avoid some users look into /root or /home/*
    > you
    > can do chmod -R 755 *
    > Then you can search for a best solution, but, i recommend you to do as
    > quicly
    > as you can chmod 755.
    > Do you have a backup created with the option -p (keep permission)? If you
    > got
    > it you can restore your system from it.
    >
    > Cheers
    >
    > --
    > Manuel Arostegui Ramirez #Linux Registered User 295750
    > Socio de Hispalinux 1813
    > Red Hat Linux 9, Kernel 2.6.2 ReiserFS
    > Firma cifrada
    > -----BEGIN PGP SIGNATURE-----
    > Version: GnuPG v1.0.6 (GNU/Linux)
    > Comment: For info see http://www.gnupg.org
    > iD8DBQE+3O1MqfmPcHTj+twRAm
    > yDAJ9P6ezepIMg06vOet/YPKxVoB+Z/ACfWVhh
    > ---END PGP SIGNATURE-----
    >
    > --
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    >

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Burke, Thomas G.: "RE: Permissions problem"

    Relevant Pages

    • Re: openSUSE 10.3 Updater error: Please help
      ... rpm -e boost-1.33.1-108.2 (which erases the wonderfully and thoroughly ... Had to delete the -doc and -devel rpms of boost before boost would delete. ... Running module permissions only ... Did not do anything to fix permissions. ...
      (alt.os.linux.suse)
    • Re: strange and serious problem about user login
      ... I will learn the lesson--make an rpm does not require being root. ... > Subject: Re: strange and serious problem about user login ... >> permissions and most files should be read group+other. ...
      (Fedora)
    • Re: Correct Permissions for /var
      ... I got a little slippery with the ... just permissions. ... Now verify that with what rpm really wants: ... Red Hat Community Ambassador Program ...
      (RedHat)
    • Re: ping: icmp open socket: Operation not permitted
      ... |It looks for me that owner and permissions are ok, ... it's not setuid and rpm says that the modes have been changed. ... /etc/permissions.paranoid which sets the permissions to not let normal ... If you want to make an exception for ping, ...
      (alt.os.linux.suse)
    • Re: cannot remove files from /tmp
      ... Maybe I can give root temporary "rpm" permissions? ...
      (Fedora)