I have created a username test123 and added it to wheel group.But adding it to wheel grants all privileges.So I removed it.
So My condition is
1.I want to give the user only "shutdown -r now" command rights
2.And to run 2 python script abc.py and xyz.py
3.Remove SFTP access for user test123
I achieved the first 1 by editing sudoers file and adding line
test123 ALL = (ALL) /sbin/shutdown -r now
But for 2nd and 3rd I need help
So My condition is
1.I want to give the user only "shutdown -r now" command rights
2.And to run 2 python script abc.py and xyz.py
3.Remove SFTP access for user test123
I achieved the first 1 by editing sudoers file and adding line
test123 ALL = (ALL) /sbin/shutdown -r now
But for 2nd and 3rd I need help