4

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
  • 4
    Remove the suid bit from utilities such as chpass and passwd.
    – fd0
    Commented Sep 20, 2015 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. Commented Sep 20, 2015 at 18:28
  • What is result please of ls -l $(type -p passwd) Commented Sep 20, 2015 at 19:36
  • Can you use groups, and shared home directory (and a umask of rwxrwx--- is that 007 ) Commented Jan 26, 2021 at 17:38

1 Answer 1

-2

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .