LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-08-2011, 04:28 AM   #1
panneer_dxb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
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
 
Old 05-08-2011, 04:34 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 05-08-2011, 04:48 AM   #3
panneer_dxb
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
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?
 
Old 05-08-2011, 05:41 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disable IRQ #209 in redhat el5 linux surya7 Red Hat 1 11-16-2010 07:45 AM
Facebook problem with Redhat Linux el5 rumia31 Linux - Software 1 09-19-2010 01:37 AM
how to configure samba in redhat linux el5 jai_nagarajan Linux - Server 2 07-06-2009 08:32 PM
media player for Redhat EL5 and how to see windows xp from linux buva7687 Linux - Software 1 06-25-2008 06:23 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration