visudo: Warning: unused User_Alias ADMINS

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question




















  • 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














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.







share|improve this question




















  • 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












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.







share|improve this question












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.









share|improve this question











share|improve this question




share|improve this question










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 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
















  • 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















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










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.






share|improve this answer




















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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






























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.






share|improve this answer




















  • 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














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.






share|improve this answer




















  • 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












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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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












 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)