How can I prevent a user to change its password in FreeBSD. In Linux i can do this by using chage -m 99999 <username> where chage is found in shadow-utils

Reason for this is I created one shell account that is shared among 10 users and I don't want any of them to change its password.

  • 4
    Remove the suid bit from utilities such as chpass and passwd.
    – fd0
    Sep 20 '15 at 12:11
  • 1
    The sane solution is to not have a shared account, or if you must have a shared account, use SSH keys in a root-owned ~/.ssh. Sep 20 '15 at 18:28
  • What is result please of ls -l $(type -p passwd)
    – roaima
    Sep 20 '15 at 19:36
  • Can you use groups, and shared home directory (and a umask of rwxrwx--- is that 007 ) Jan 26 at 17:38

As FreeBSD dos not implement a method to set the minimum time between passwd changes, there is no way to prevent users from changing the passwd on FreeBSD.

  • 1
    There are other ways to prevent users from changing the passwords than setting a minimum time between password changes. Sep 20 '15 at 18:29
  • Well, you don't seem to know another way, as you did not mention such a method.
    – schily
    Sep 20 '15 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.