LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Redhat LINUX el5 _ sudo + Id commad error (https://www.linuxquestions.org/questions/linux-enterprise-47/redhat-linux-el5-_-sudo-id-commad-error-879449/)

panneer_dxb 05-08-2011 04:28 AM

Redhat LINUX el5 _ sudo + Id commad error
 
Hi ,

Please find the below error and help me to resove the issue.

1.
[root@Test ~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=user_u:system_r:unconfined_t

2.
[root@prgrcwebsbl01 ~]# visudo
visudo: /etc/sudoers.tmp unchanged
visudo: Warning: unused Cmnd_Alias DELEGATING
visudo: Warning: unused Cmnd_Alias DRIVERS
visudo: Warning: unused Cmnd_Alias LOCATE
visudo: Warning: unused Cmnd_Alias NETWORKING
visudo: Warning: unused Cmnd_Alias PROCESSES
visudo: Warning: unused Cmnd_Alias SERVICES
visudo: Warning: unused Cmnd_Alias SOFTWARE
visudo: Warning: unused Cmnd_Alias STORAGE
[root@prgrcwebsbl01 ~]#
regards
RPS

EricTRA 05-08-2011 04:34 AM

Hello,

Those are not errors but only warnings from visudo, indicating that you have set up Cmnd_Aliases in your /etc/sudoers file but are not using them anywhere after defining them. If you didn't set up anything to use those command aliases then you can safely comment then out by putting a # at the beginning of the lines that refer to those aliases.

Kind regards,

Eric

panneer_dxb 05-08-2011 04:48 AM

Quote:

Originally Posted by EricTRA (Post 4349867)
Hello,

Those are not errors but only warnings from visudo, indicating that you have set up Cmnd_Aliases in your /etc/sudoers file but are not using them anywhere after defining them. If you didn't set up anything to use those command aliases then you can safely comment then out by putting a # at the beginning of the lines that refer to those aliases.

Kind regards,

Eric

Thanks Eric.

context=user_u:system_r:unconfined_t - how to resolve?

EricTRA 05-08-2011 05:41 AM

Hi,

As indicated in my first reply, run the visudo command and comment the Cmnd_alias lines you're not using by putting a # in front of them. Has nothing to do with sudo syntax or anything like that.

Kind regards,

Eric


All times are GMT -5. The time now is 04:15 AM.