Time range option in shutdown for a user in sudoers
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I need to give sudo privileges to a user for shutdown permissions. But the user can only send out a shutdown request with a time of greater than 3 hours. I've been trying by implementing globbing.
For example :
username ALL=/usr/sbin/shutdown +[[:digit:]] -> Trial for any number
username ALL=/usr/sbin/shutdown +[180-*] -> Trial for 180 minutes and beyond
And numerous other cases. But nothing works.
linux sudo wildcards
New contributor
add a comment |Â
up vote
0
down vote
favorite
I need to give sudo privileges to a user for shutdown permissions. But the user can only send out a shutdown request with a time of greater than 3 hours. I've been trying by implementing globbing.
For example :
username ALL=/usr/sbin/shutdown +[[:digit:]] -> Trial for any number
username ALL=/usr/sbin/shutdown +[180-*] -> Trial for 180 minutes and beyond
And numerous other cases. But nothing works.
linux sudo wildcards
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to give sudo privileges to a user for shutdown permissions. But the user can only send out a shutdown request with a time of greater than 3 hours. I've been trying by implementing globbing.
For example :
username ALL=/usr/sbin/shutdown +[[:digit:]] -> Trial for any number
username ALL=/usr/sbin/shutdown +[180-*] -> Trial for 180 minutes and beyond
And numerous other cases. But nothing works.
linux sudo wildcards
New contributor
I need to give sudo privileges to a user for shutdown permissions. But the user can only send out a shutdown request with a time of greater than 3 hours. I've been trying by implementing globbing.
For example :
username ALL=/usr/sbin/shutdown +[[:digit:]] -> Trial for any number
username ALL=/usr/sbin/shutdown +[180-*] -> Trial for 180 minutes and beyond
And numerous other cases. But nothing works.
linux sudo wildcards
linux sudo wildcards
New contributor
New contributor
New contributor
asked 3 mins ago
Shazam
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Shazam is a new contributor. Be nice, and check out our Code of Conduct.
Shazam is a new contributor. Be nice, and check out our Code of Conduct.
Shazam is a new contributor. Be nice, and check out our Code of Conduct.
Shazam is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475335%2ftime-range-option-in-shutdown-for-a-user-in-sudoers%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password