Operating System - HP-UX
1748176 Members
4275 Online
108758 Solutions
New Discussion

Re: how can I run glance on an 11.31 system as a sudo user?

 
Jacques Carriere
Regular Advisor

how can I run glance on an 11.31 system as a sudo user?

When I try to run glance as a sudo suser, I get the error "Sorry, you must be superuser".  What am I missing in my /etc/sudoer file?

 

thx

 

Jacques

 

 

 

 

4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: how can I run glance on an 11.31 system as a sudo user?

Are you prefacing your command with the word 'sudo'?  For example:

 

$ sudo glance

 

If you are NOT, then sudo is not being invoked.

Dennis Handly
Acclaimed Contributor

Re: how can I run glance on an 11.31 system as a sudo user?

glance is a SUID executable.  What are its permissions and ownership?  -r-sr-xr-x?

Are you mounting /opt without nosuid?

Jacques Carriere
Regular Advisor

Re: how can I run glance on an 11.31 system as a sudo user?

permissions are -r-sr-xr-x and I am not mounting without any UID.

 

Question: Once I set all my parameters in /etc/sudoers,  do I login as the user and execute "glance" or do I login as the user and then execute "sudo glance"?

 

From all my testing,  I

test no.1

# su - userX

# sudo glance  (will ask me for the userX password and this is what I want to avoid). If I enter the userX password, glance will work just fine.

 

test no. 2

#su - userX

# glance

Failure: File write failed.
ERROR : license error :The entity is not licensed.

 

I would appreciate any help.

thx

Jacques

 

 

 

 

 

 

 

 

Patrick Wallek
Honored Contributor

Re: how can I run glance on an 11.31 system as a sudo user?

>>Question: Once I set all my parameters in /etc/sudoers,  do I login as the user and execute "glance" or do I login as the user and then execute "sudo glance"?

 

You must execute 'sudo glance'.  Otherwise how will the system know to use sudo?

 

>># sudo glance  (will ask me for the userX password and this is what I want to avoid). If I enter the userX password, glance will work just fine.

 

Asking for the password is a normal function of sudo.  That is how it works.  If you do not want it to ask for the password there is a NOPASSWD directive in sudo that can be used.

 

See examples for the use of NOPASSWD here -- http://www.courtesan.com/sudo/sample.sudoers