- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how can I run glance on an 11.31 system as a sudo ...
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
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
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
01-02-2013 06:53 AM
01-02-2013 06:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2013 07:07 AM
01-02-2013 07:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2013 10:21 AM
01-02-2013 10:21 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2013 12:50 PM
01-02-2013 12:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2013 02:10 PM
01-02-2013 02:10 PM
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