pB2556
pB2556

Reputation: 77

Why can users change their password with passwd, even though they cannot write to the /etc/shadow file directly?

The title pretty much sums it up. Its for schoolwork and i cant seem to find informative sources about it anywhere. Do some of you guys know why?

Upvotes: 0

Views: 87

Answers (1)

DevSolar
DevSolar

Reputation: 70313

1) Find out where the passwd executable is located. (which)

2) List the passwd executable with all parameters, especially the file permissions. (ls)

3) Read the manual page for chmod, especially the part about SETUID.

;-)

Upvotes: 1

Related Questions