The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
difference between pkginfo and pkgchk command rogerben SUN Solaris 5 02-15-2009 09:16 PM
format and pkginfo -l question 98_1LE UNIX for Dummies Questions & Answers 4 03-06-2001 04:52 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
noam128 noam128 is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 4
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 (permalink)  
Old 2 Weeks Ago
Skaperen Skaperen is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 3
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).
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0