- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - sudo problem
 
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
 
05-16-2006 03:05 AM
05-16-2006 03:05 AM
			
				
					
						
							sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
"user NOT authorized on host"
Not exactly sure what that means, the user has access to the box and I have given them sudo permission to run the commands in /etc/sudoers.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 03:14 AM
05-16-2006 03:14 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 03:15 AM
05-16-2006 03:15 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 03:16 AM
05-16-2006 03:16 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
The command *must* be exactly what the user types. You can use wildcards, but the path & actual command must match that pattern.
Also most sudo rules apply to group perms so make sure the user is effectively in the proper group - i.e. if they're a member of several, they are presently in the proper one or you've set up netgroups to give them rights to all.
HTH,
Jeff
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 03:33 AM
05-16-2006 03:33 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
Perhaps, this could help http://www.ussg.iu.edu/UAU/advcomm/sudoers
-Arun
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 03:38 AM
05-16-2006 03:38 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
I have the full path in the entry but with no options, that should give them the access to run it with any options they choose.
The user is only in one group.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 03:51 AM
05-16-2006 03:51 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
User_Alias SUDO_NAME = %group_name1, %group_name2
Cmnd_Alias SUDO_CMD_NAMES = \
/path/to/first/command, \
/path/to/second/commnd, \
/path/to/final/command
SUDO_NAME ALL = (root) SUDO_CMD_NAMES
Note the need for commas after group definitions & commas/backslashes as well after all but the last command and the actual definitions at the end of the section.
It's easy to miss one of these.
HTH,
Jeff
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 04:07 AM
05-16-2006 04:07 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
user1 ALL=(ALL) NOPASSWD:/path/to/command
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 09:01 AM
05-16-2006 09:01 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
Are you sure that there are no duplicate user-id's in your passwd or group file.
Does your syntax work for another user?
Can you do the following:
- id
- pwck
- grpck
Darrel
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-16-2006 09:22 AM
05-16-2006 09:22 AM
			
				
					
						
							Re: sudo problem
						
					
					
				
			
		
	
			
	
	
	
	
	
logins -d
Bill Hassell, sysadmin