Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-18-2004 06:04 PM
06-18-2004 06:04 PM
			
				
					
						
							Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
Still I could not solve the problem with sudo. I need help. There is attachment file for review.
Regards
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-19-2004 02:10 PM
06-19-2004 02:10 PM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
Can you please explain your problem? I do not see any posts before this message about your problem.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-19-2004 05:22 PM
06-19-2004 05:22 PM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
The error says that you are trying to execute sudo as root. Since root is not defined in your sudoers file (unless you make root as part of cmsoper group or add root to your User_Alias), it gave you the error. Why would you use sudo for root anyway?.
To make it simple, add these lines to your sudoers and see if they work for you.
Cmnd_Alias MYCMDS = /usr/sbin/fbackup, /usr/sbin/frecover, /usr/sbin/shutdown
%cmsoper ALL = (root) NOPASSWD: MYCMDS
-Sri
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-19-2004 09:56 PM
06-19-2004 09:56 PM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
I did changes as you mentioned. When I run sudo it says that
[cmsprod,cmsoper,ORCL,/]>/usr/local/bin/sudo shutdown
User root not allowed to shutdown this system (cmsprod) -- exiting shutdown.
[cmsprod,cmsoper,ORCL,/]>
[cmsprod,cmsoper,ORCL,/]>
Please check the attachment file.
Regards
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-20-2004 06:07 AM
06-20-2004 06:07 AM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
Looks like you configured /etc/shutdown.allow and didn't add root in it. That file if exists and non-empty, should also have root included if you want to shutdown the system as root.
Either delete that file or add root to it. This is not a problem with sudo.
-Sri
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-20-2004 09:37 AM
06-20-2004 09:37 AM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-20-2004 04:27 PM
06-20-2004 04:27 PM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
I did run before removing /etc/shutdown.allow and after removing /etc/shutdown.allow. Please check attachment file.
Thanks & Regards
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-20-2004 05:37 PM
06-20-2004 05:37 PM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
There may also be a special character in the shutdown.allow file. List the file with the command:
xd -xc /etc/shutdown.allow
With the second message, you must cd to a root directory (such as /home, not /home/cmsoper or the / directory) before issuing the shutdown command.
Bill Hassell, sysadmin
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-21-2004 02:05 AM
06-21-2004 02:05 AM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
On the other hand, if the idea is to only allow users to shutdown,fbackup and frecover you can use "restricted sam" feature. Run "sam -r" as root and enable *only* the tools that you want the others to execute.
-Sri
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-22-2004 05:32 PM
06-22-2004 05:32 PM
			
				
					
						
							Re: Sudo
						
					
					
				
			
		
	
			
	
	
	
	
	
Thanks with cd / before sudo it is working fine. First I started with sam -r I faced problem, than expert people like you in this forum suggest me to use sudo. Well shutdown reboot is working. I did try sam -r the problem is I could not exit the sam. What is hapenning is within the operator menu it is calling sam -r menu, which has two custom application say [fbackup/frecover]. I run fbackup it works fine without error. After complete the fbackup it is backup to sam menu, when I try to exit sam it is running fbackup again with some files error. It finished normal and exit from sam.
What I understand first when I run fbackup it running through sam -r , when I try to exit sam it is running again, which is running from /home/cmsoper with some files error. Could you tell me where I am making error.
Thanks