RE: RPM? Reset permissions

From: Ragone_Andrew (andrag_at_bergen.org)
Date: 05/27/04

  • Next message: Dylan Parry: "UK keyboard layout with winkeys"
    Date: Wed, 26 May 2004 18:34:06 -0400
    To: "For users of Fedora Core releases" <fedora-list@redhat.com>
    
    
    

    Hmm, i seem to get this error when i run the command:

    [/var/lib]
    [root@lifeonedge lib]# rpm -setugids -R .
    sh: line 2: package: command not found
    [root@lifeonedge lib]#

    Is RPM not configured correctly?

    -----Original Message-----
    From: Brad Smith [mailto:brads@redhat.com]
    Sent: Wed 5/26/2004 2:55 PM
    To: For users of Fedora Core releases
    Cc:
    Subject: RE: RPM? Reset permissions
    I mentioned in another reply, but since it's a really useful and barely
    documented feature I'll mention it again.

    Rpm's --setperms option fixes this easily. For example:

    [root@satsuki root]# ls -l /bin/bash
    -rwxr-xr-x 1 root root 599860 Dec 9 13:09 /bin/bash
    [root@satsuki root]# chmod o-x /bin/bash
    [root@satsuki root]# ls -l /bin/bash
    -rwxr-xr-- 1 root root 599860 Dec 9 13:09 /bin/bash
    [root@satsuki root]# rpm --setperms bash
    [root@satsuki root]# ls -l /bin/bash
    -rwxr-xr-x 1 root root 599860 Dec 9 13:09 /bin/bash

    The --setugids option does the same thing with botched ownership.

    Definitely no need to reinstall. =;)

    --Brad

    On Wed, 2004-05-26 at 17:43, Ronald Warsow wrote:
    > hallo
    >
    > I found this in maximun-rpm from RH9 docu:
    >
    > rpm -qp --queryformat='[%{FILEMODES:perms} %{FILEUSERNAME}
    > %{FILEGROUPNAME} %-80{FILENAMES} : %{=NAME} \n]' *.rpm
    >
    > running this on the distro cd's for each packages gives the orginal
    > permissions,etc.
    > running this output against an ls -lR and a lot of "visual grep's"
    > ;-))
    > gives me the view of a lot work to do, quick leading to a faster
    > solution for an mistakenly chmoded and chowned /etc/, /dev, ....
    > FRESH INSTALLATION !
    > good luck !!!
    >
    > ronald
    >
    >
    >
    >
    >

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    
    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    


  • Next message: Dylan Parry: "UK keyboard layout with winkeys"

    Relevant Pages

    • Re: FC4, FC6, F7 what works, and dont
      ... no bbder found using root instead. ... When you install the rpm is it the fact that rpm runs ... building the package. ...
      (Fedora)
    • Re: No rpm, no sound, no zip, and no kdm image.
      ... Whatever command I try to execute it prints the ... Rpm seems to work when I start the system in run level 1. ... >but as root, it still gave the same error. ...
      (Fedora)
    • Re: RH vs SUSE
      ... "Command not found.", chances are either you don't have make package ... you can use rpm to check if make package ... I switched from RH 9 to SUSE 9.1 and now I'm starting ...
      (alt.os.linux.suse)
    • Re: RPM
      ... > I would like to know what RPM is? ... RPM originally stood for Red-Hat Package Management. ... *makefile* that uses the "make" command to compile, link, and then ... Typically you run "rpm -U such-and-such.rpm" to install something. ...
      (Fedora)
    • Re: FC4, FC6, F7 what works, and dont
      ... attempt to finding a srpm of the package you need. ... package install it and build your one rpm like so: ... It's dangerous to build packages as root. ... to build as a regular user, install the rpmdevtools package and then ...
      (Fedora)