Operating System - Linux
1829582 Members
20762 Online
109992 Solutions
New Discussion

need to provide the su - root access upto this month to the user

 
gany59
Regular Advisor

need to provide the su - root access upto this month to the user

Hi folks,

I want to set the su -root access for the user naraguna upto this month. How can i set that one in the /etc/sudoers file. Is that any option is there to provide the su access upto specific date.

[root@dmocoi~]# more /etc/sudoers | grep -i naraguna
naraguna ALL=NOPASSWD:/bin/su - root



1 REPLY 1
Alzhy
Honored Contributor

Re: need to provide the su - root access upto this month to the user

Have a sudoers file that has that user out of sudoers.

Then simply set up an "at" job (with Email Feed Back/Alert) that will copy that sudoers file in place.

That is how I usually do it.

Hakuna Matata.