Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

How does new password is assigned to a normal user in unix?

Hi,

As all users passwords are stored in encrypted form in
/etc/password file, how could i able to change my password
through my user login, even though i dont have write permission on /etc/password file? Internally how kernel
is editing password file.

regards
dssr
0
dssrrjy
Asked:
dssrrjy
1 Solution
 
tfewsterCommented:
/usr/bin/passwd is a SUID program, i.e. it runs with superuser permissions. It checks which user is executing it, and only allows them to modify their own entry.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now