Operating System - HP-UX
1833758 Members
2746 Online
110063 Solutions
New Discussion

Permissions for /etc/passwd

 
SOLVED
Go to solution
Shreeraj Karulkar
Occasional Contributor

Permissions for /etc/passwd

Can some one tell me what are the correct permissions for the /etc/passwd file ?
Also the owner:group
ThanX
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Permissions for /etc/passwd

HI:

The '/etc/passwd' file must be readable by anyone in order to map numeric uid values to names when a user runs 'ls' for example.

The file is normally owned by 'root' and should be writeable only by 'root', although the root user can write to any file regardless of its permissions.

Regards!

...JRF...
Shreeraj Karulkar
Occasional Contributor

Re: Permissions for /etc/passwd

James
THanX for your response, I do understand the concept. However I am looking for a specific answer. Apparently at my work there seems to be the following permissions

-r--r--r-- 1 root sys 16872 Jan 30 17:24 /etc/passwd


Is this correct.
Patrick Wallek
Honored Contributor
Solution

Re: Permissions for /etc/passwd

Yes, -r--r--r-- are the correct permissions for the /etc/passwd file.
James R. Ferguson
Acclaimed Contributor

Re: Permissions for /etc/passwd

Hi (again):

Yes, that is perfectly appropriate.

If you wish, compare your ownership and permissions to '/usr/newconfig/etc/passwd' (although its ownership is generally "root:other").

Regards!

...JRF...