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 > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cut -d: -f4 /etc/passwd | more wickbc SUN Solaris 3 11-08-2007 03:16 PM
AIX 5.1 to AIX 5.2 /etc/passwd gefa AIX 1 03-31-2005 01:56 AM
no /etc/passwd cyno UNIX for Advanced & Expert Users 3 11-03-2003 04:19 PM
etc/passwd nguda UNIX for Dummies Questions & Answers 2 07-03-2003 09:38 AM
passwd Erwin Stocker UNIX for Advanced & Expert Users 5 10-09-2002 06:33 AM

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 1 Week Ago
daveisme daveisme is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 39
etc/passwd

Is there any way to allow users to access the etc/passwd file for commands like whoami but not be able to read the file? If I don't put a user in the security group and change the permissions on the etc/passwd file to 640 (rw-r-----) the users can login but the whoami command doesn't work for them. If I give other the read permission whoami works but the user can also read the file. I want user to be able to run the whoami command but not see what is in the /etc/passwd file.
  #2 (permalink)  
Old 1 Week Ago
TonyLawrence TonyLawrence is offline
Registered User
  
 

Join Date: Sep 2007
Location: SE Mass
Posts: 133
If you have "sudo", add that for the users. Or make it setuid.
  #3 (permalink)  
Old 6 Days Ago
syndex syndex is offline
Registered User
  
 

Join Date: Jun 2007
Location: Pennsylvania
Posts: 46
I would suggest setting up sudo for whoami. If you want to make it completely transparent set up sudo, so the user doesn't need to type in a password and then create an alias that does 'sudo whoami'.
  #4 (permalink)  
Old 3 Days Ago
garethr garethr is offline
Registered User
  
 

Join Date: May 2009
Location: England
Posts: 89
You can't make /etc/passwd unreadable, because commands like "ls" rely on it to associate numeric uids to usernames.

If you make /etc/passwd unreadable to a user, then whenever that user types "ls -l", or certain other commands, they will just see numbers instead of usernames as the file owners.
Sponsored Links
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:46 AM.


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