Answer the question
In order to leave comments, you need to log in
How to disable user expiration in linux?
Gentlemen, how to disable user expiration in linux?
The fact is that the hosting provided me with a machine with root access, and for security reasons I decided to return everything to my beloved sudo.
But here's the team: it usermod --expiredate 1 root
turned out to be superfluous, because. now there is no root at all, and sudo su is still sometimes necessary.
Of course, you can put just some very distant date instead of "1", but this will not completely disable the expiration. usermod --expiredate 0 root
- does not disable user expiration.
How to do it right? Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question