Solved

Red Hat rpm permissions

Posted on 2014-01-21
6
471 Views
Last Modified: 2014-01-22
I have a Red Hat 6.4 OS on a closed network that need to update manually.
I copied some rpms to a private folder on a closed network. But later I notice the ownership of each rpms change to me and had 600 permissions.   i.e unix2dos
How should I change the permissions of rpm's to what they should be.  Is there a standard permission for rpm's?
0
Comment
Question by:gumball60
  • 3
  • 3
6 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 435 total points
ID: 39797875
No, the only thing that matters is that you are able to issue command to install them

rpm -ivh RPM_NAME.rpm

When and RPM is installed, what matters is the permissions of what it installs and RPM does it when it runs.

You can always change the permissions of any file using command
chmod

See manual
man chmod

Example
chmod 777 filename

To change the ownership, you can use chown
man chown

Also, I don't know how you copied but you can always maintain permissions in your copy command
cp -p source target
0
 

Author Comment

by:gumball60
ID: 39800190
when I run rpm -ivh RPM_NAME.rpm,  I am getting Warning:  xxx.rpm Header V4 DSA/SHA1 signature, key ID #####  Error: Failed Dependencies:
RPM_NAME = RPM_NAME.rpm is needed by RPM_NAME...x86_64

Do I needed download and copy the said dependencies...and perform the rpm -ivh on them?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39800199
Check if you have this RPM.  If you don't you have to get it.  This process is tedious and may take many more downloads but you can certainly try.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:gumball60
ID: 39800321
What is good way of downloading specific rpms without a subscription to Red Hat?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39800329
If you don't have subscription, it becomes difficult.  The clever thing is to use one of the RedHat clones instead--like CentOS or Scientific linux.  Since they are clones, they are exactly the same and they are absolutely free.  Yum works as well.  Then you don't have any of these problems.
0
 

Author Closing Comment

by:gumball60
ID: 39801756
It works
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question