![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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.
|
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|