I
I
Ilya Bosenok2015-09-27 23:54:21
linux
Ilya Bosenok, 2015-09-27 23:54:21

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

1 answer(s)
V
Vlad Zhivotnev, 2015-09-28
@bosenok

usermod --expiredate root
Or
usermod --expiredate '' root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question