I want to know if it's possible to give access to root user for one week or a month, for example.
It's possible to increase the period of time before the defined period ends?
Is it possible to give access without time limitation, forever?
rootusers
I want to know if it's possible to give access to root user for one week or a month, for example.
It's possible to increase the period of time before the defined period ends?
Is it possible to give access without time limitation, forever?
Best Answer
Since you can add and remove users at will from sudoers, all you need is a way to schedule it.
One way you could do this is to do something like this with sudoers:
/etc/sudoers
usingsudo visudo
, and add a statement for that user with a unique string on the end:at
if you have it (it's bundled withatd
), but you can also schedule it manually usingcron
: