visudo: Warning: unused User_Alias ADMINS

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
This warning occurs even with the following line in my sudoers file:
User_Alias ADMINS = tom
Removing the line eliminates the warning.
Adding tom to the wheel group appears to be sufficient to enable sudo commands, but the vagaries of whether completely logging out is required make experimentation cumbersome.
I'm using OpenSuse Leap.
I would appreciate any insight into this confusing situation.
sudo
add a comment |Â
up vote
0
down vote
favorite
This warning occurs even with the following line in my sudoers file:
User_Alias ADMINS = tom
Removing the line eliminates the warning.
Adding tom to the wheel group appears to be sufficient to enable sudo commands, but the vagaries of whether completely logging out is required make experimentation cumbersome.
I'm using OpenSuse Leap.
I would appreciate any insight into this confusing situation.
sudo
The warning is telling you that the alias is not used anywhere. Is it? Probably not, perhaps you removed the rule using it earlier. If you add a lineUser_Alias NOTUSED = whateverthen you'll also geta warning about that. So what is confusing you about this? It's just a warning that you for some reason have defined an alias but perhaps then forgot use it in a rule.
â wurtel
Jan 24 at 9:51
Used as in: part of a user-to-command rule
â Jeff Schaller
Jan 24 at 10:17
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This warning occurs even with the following line in my sudoers file:
User_Alias ADMINS = tom
Removing the line eliminates the warning.
Adding tom to the wheel group appears to be sufficient to enable sudo commands, but the vagaries of whether completely logging out is required make experimentation cumbersome.
I'm using OpenSuse Leap.
I would appreciate any insight into this confusing situation.
sudo
This warning occurs even with the following line in my sudoers file:
User_Alias ADMINS = tom
Removing the line eliminates the warning.
Adding tom to the wheel group appears to be sufficient to enable sudo commands, but the vagaries of whether completely logging out is required make experimentation cumbersome.
I'm using OpenSuse Leap.
I would appreciate any insight into this confusing situation.
sudo
asked Jan 24 at 9:30
Tom Russell
1408
1408
The warning is telling you that the alias is not used anywhere. Is it? Probably not, perhaps you removed the rule using it earlier. If you add a lineUser_Alias NOTUSED = whateverthen you'll also geta warning about that. So what is confusing you about this? It's just a warning that you for some reason have defined an alias but perhaps then forgot use it in a rule.
â wurtel
Jan 24 at 9:51
Used as in: part of a user-to-command rule
â Jeff Schaller
Jan 24 at 10:17
add a comment |Â
The warning is telling you that the alias is not used anywhere. Is it? Probably not, perhaps you removed the rule using it earlier. If you add a lineUser_Alias NOTUSED = whateverthen you'll also geta warning about that. So what is confusing you about this? It's just a warning that you for some reason have defined an alias but perhaps then forgot use it in a rule.
â wurtel
Jan 24 at 9:51
Used as in: part of a user-to-command rule
â Jeff Schaller
Jan 24 at 10:17
The warning is telling you that the alias is not used anywhere. Is it? Probably not, perhaps you removed the rule using it earlier. If you add a line
User_Alias NOTUSED = whatever then you'll also geta warning about that. So what is confusing you about this? It's just a warning that you for some reason have defined an alias but perhaps then forgot use it in a rule.â wurtel
Jan 24 at 9:51
The warning is telling you that the alias is not used anywhere. Is it? Probably not, perhaps you removed the rule using it earlier. If you add a line
User_Alias NOTUSED = whatever then you'll also geta warning about that. So what is confusing you about this? It's just a warning that you for some reason have defined an alias but perhaps then forgot use it in a rule.â wurtel
Jan 24 at 9:51
Used as in: part of a user-to-command rule
â Jeff Schaller
Jan 24 at 10:17
Used as in: part of a user-to-command rule
â Jeff Schaller
Jan 24 at 10:17
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
You have correctly identified the cause and effect. visudo performs several "sanity checks" on the sudoers file in order to prevent some number of innocent mistakes.
Perhaps you intended to provide some sudo commands to the ADMINS, and got distracted after entering the User_Alias and before entering the actual commands. Or perhaps you were cleaning up old entries and had deleted the command entries but forgot the User_Alias.
visudo is simply telling you that you have defined a User, Runas, Host, or Cmnd alias but have not used that alias in any actual sudo command rules.
If you intend for tom (or, the ADMINS) to be able to run some commands, enter those. If you have scratched your itch by adding tom to the wheel group, simply remove the ADMINS User_Alias, and the warning will go away.
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You have correctly identified the cause and effect. visudo performs several "sanity checks" on the sudoers file in order to prevent some number of innocent mistakes.
Perhaps you intended to provide some sudo commands to the ADMINS, and got distracted after entering the User_Alias and before entering the actual commands. Or perhaps you were cleaning up old entries and had deleted the command entries but forgot the User_Alias.
visudo is simply telling you that you have defined a User, Runas, Host, or Cmnd alias but have not used that alias in any actual sudo command rules.
If you intend for tom (or, the ADMINS) to be able to run some commands, enter those. If you have scratched your itch by adding tom to the wheel group, simply remove the ADMINS User_Alias, and the warning will go away.
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
add a comment |Â
up vote
2
down vote
accepted
You have correctly identified the cause and effect. visudo performs several "sanity checks" on the sudoers file in order to prevent some number of innocent mistakes.
Perhaps you intended to provide some sudo commands to the ADMINS, and got distracted after entering the User_Alias and before entering the actual commands. Or perhaps you were cleaning up old entries and had deleted the command entries but forgot the User_Alias.
visudo is simply telling you that you have defined a User, Runas, Host, or Cmnd alias but have not used that alias in any actual sudo command rules.
If you intend for tom (or, the ADMINS) to be able to run some commands, enter those. If you have scratched your itch by adding tom to the wheel group, simply remove the ADMINS User_Alias, and the warning will go away.
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You have correctly identified the cause and effect. visudo performs several "sanity checks" on the sudoers file in order to prevent some number of innocent mistakes.
Perhaps you intended to provide some sudo commands to the ADMINS, and got distracted after entering the User_Alias and before entering the actual commands. Or perhaps you were cleaning up old entries and had deleted the command entries but forgot the User_Alias.
visudo is simply telling you that you have defined a User, Runas, Host, or Cmnd alias but have not used that alias in any actual sudo command rules.
If you intend for tom (or, the ADMINS) to be able to run some commands, enter those. If you have scratched your itch by adding tom to the wheel group, simply remove the ADMINS User_Alias, and the warning will go away.
You have correctly identified the cause and effect. visudo performs several "sanity checks" on the sudoers file in order to prevent some number of innocent mistakes.
Perhaps you intended to provide some sudo commands to the ADMINS, and got distracted after entering the User_Alias and before entering the actual commands. Or perhaps you were cleaning up old entries and had deleted the command entries but forgot the User_Alias.
visudo is simply telling you that you have defined a User, Runas, Host, or Cmnd alias but have not used that alias in any actual sudo command rules.
If you intend for tom (or, the ADMINS) to be able to run some commands, enter those. If you have scratched your itch by adding tom to the wheel group, simply remove the ADMINS User_Alias, and the warning will go away.
answered Jan 24 at 14:12
Jeff Schaller
31.6k847107
31.6k847107
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
add a comment |Â
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
I'd have to do some research to find out how to enter the commands, so I'll just consider my itch scratched. LOL. I'll just have to hope that running a desktop session on an Internet-connected computer with user tom in the wheel group doesn't hose me.
â Tom Russell
Feb 9 at 8:03
add a comment |Â
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%2f419297%2fvisudo-warning-unused-user-alias-admins%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
The warning is telling you that the alias is not used anywhere. Is it? Probably not, perhaps you removed the rule using it earlier. If you add a line
User_Alias NOTUSED = whateverthen you'll also geta warning about that. So what is confusing you about this? It's just a warning that you for some reason have defined an alias but perhaps then forgot use it in a rule.â wurtel
Jan 24 at 9:51
Used as in: part of a user-to-command rule
â Jeff Schaller
Jan 24 at 10:17