rpm and pkginfo question


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users rpm and pkginfo question
# 1  
Old 11-04-2009
rpm and pkginfo question

Can the root hide some of the results of the above commands from a regular user? i.e.
Code:
$>rpm

and
Code:
$>sudo rpm

will give different results
# 2  
Old 11-06-2009
Normally rpm needs to run as root for packages to be installed, and other functions to be performed. It may allow some other functions to work which generally have read-only effect (for example a user may be able to list what packages are installed). If you want to prevent the user from running it, change the permissions of the executable file. If you want to let the user run it but hide the output, move rpm to another location/name, and put in its place a script that runs it at that new location/name using output redirection. For partial hiding, do the script with the output piped to a program that can filter it as desired (sed, awk, whatever).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX rpm: a question about deps

On Solaris 10 i use pkgutil,very nice,update like "apt-get" On HPUX i use depothelper for resolv depends On AIX there is something similar for use rpm? I try this but is not the same thing. AIX Open Source Packages | FAQs / FAQs (Frequently Asked Questions) (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

2. Solaris

Host name in front of pkginfo output

hello all I am trying to create a comma seperated file of the pkginfo command. The follwoing works pretty well. pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' ORS=', ' however, there are two issues. 1, For some reason it does not load into excel properly. It loads as... (7 Replies)
Discussion started by: busi386
7 Replies

3. Shell Programming and Scripting

<<< Question related to making of RPM package >>>

Hi all, Pls provide your suggestions and advice for the below queries. I have a files like below sample $ ls -l /u01/app -rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test -rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test1 -rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test -... (1 Reply)
Discussion started by: kamauv234
1 Replies

4. UNIX for Dummies Questions & Answers

Question on Redhat ver.6 RPM's

Hi, Using Redhat version 6.0, I need nmap so I have downloaded. But it requires many other dependencies, when I try to install it. See below err.msg. Is there any other way to get this installed, or I need to download each of the dependencies. rpm -Uhv nmap-5.51-2-mdv2011.0.x86_64.rpm... (3 Replies)
Discussion started by: samnyc
3 Replies

5. Fedora

Basic question regarding rpm naming convention.

Hi Guys, Where would i find the list of distribution codes. For example. samba-32bit-3.4.2 -1.1.3.1.x8664.rpm In above rpm file it is indicated that its release is 1.1.3.1 . The rpm is meant to be run for opensuse. Where would i get the linking of release number and distribution. ... (2 Replies)
Discussion started by: pinga123
2 Replies

6. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

7. Solaris

grep help with pkginfo

im looking for a way to eliminate the packages from SUN when i do a pkginfo. thought this would work, but no luck. pkginfo | grep what am i doing wrong? Thanks (2 Replies)
Discussion started by: jrich523
2 Replies

8. Linux

RPM Package question

Hi, I have built one RPM last year. now we have another version of that RPM. in previous release we had few extra files then now. so when user upgrade it those files get deleted by RPM package. We want to retain those files. now for workaround i thought of backing up those file during... (0 Replies)
Discussion started by: ajayyadavmca
0 Replies

9. UNIX for Dummies Questions & Answers

mandrake rpm question

Env: Mdk 8.1 I downloaded the kernel-source-2.4.8-26mdk.i586.rpm from mandrake. When i try to 'pm -Uv' it, i get an error that i need to install ncurses-devel. The ncurses that is installed with mdk 8.1 is ncurses-5.2-16mdk.i586.rpm and the development version that is avail is... (2 Replies)
Discussion started by: progressdll
2 Replies

10. UNIX for Dummies Questions & Answers

format and pkginfo -l question

I have a Solaris 2.6 box flagging an "Error block: 308918" in the messages file when I execute a pkginfo -l. pkginfo with no flags returns no errors. I think I need to use format to mark this block and then restore the database used by pkginfo for backup. Any advice/input welcome. Thanks (4 Replies)
Discussion started by: 98_1LE
4 Replies
Login or Register to Ask a Question