Solved

Red Hat rpm permissions

Posted on 2014-01-21
6
469 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
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!

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
liboauth-php x oauth-1.2.3 3 45
nagios 1 21
Anything Suspicious in this Report Email on Linux Server 4 35
how to rebuild XFS volume from LV 19 33
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now