What should the permission settings be for /etc/passwd and /etc/shadow?
A. /etc/passwd: rwrr /etc/shadow: rwrr
B. /etc/passwd: r /etc/shadow: r
C. /etc/passwd: rwrr /etc/shadow: r
D. /etc/passwd: r /etc/shadow: rwrr
2 Comments on “What should the permission settings be for /etc/passwd and /etc/shadow?”
Tom Williamssays:
Is this not /etc/passwd: rwrr and /etc/shadow: rwr?
0
0
Simonsays:
My UBUNTU systems has the permission bits set as you have said but my CENTOS system has no permissions set. I think it should be only read for the root user as the passwd command has the SUID bit set and when any user changes there password they do so as the ROOT user for that command only.
Is this not /etc/passwd: rwrr and /etc/shadow: rwr?
0
0
My UBUNTU systems has the permission bits set as you have said but my CENTOS system has no permissions set. I think it should be only read for the root user as the passwd command has the SUID bit set and when any user changes there password they do so as the ROOT user for that command only.
0
0