- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vg commands as non-root user
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
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
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
тАО10-19-2001 07:01 AM
тАО10-19-2001 07:01 AM
vg commands as non-root user
is there any way to run vgimport, vgchgid, vgchange and mount commands as a non-root user?
Any, I say, ANY suggestion will be precious!!!!
Thanks a lot
Riccardo
rfavaro@iss.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 07:11 AM
тАО10-19-2001 07:11 AM
Re: vg commands as non-root user
For example
You can assign user sachin a permission to run a command vgchange with root access. sachin can run only that command with root access.
But overall not a good idea to give a user permission to run that kind of command. Why are we have system admin people?
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 07:15 AM
тАО10-19-2001 07:15 AM
Re: vg commands as non-root user
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 07:15 AM
тАО10-19-2001 07:15 AM
Re: vg commands as non-root user
I guess you can't do this without root privilege.
you can get some utilities like 'sudo' to run
some of these command but not a good idea.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 07:23 AM
тАО10-19-2001 07:23 AM
Re: vg commands as non-root user
You can very easily do this with sudo or by creating a small C setuid program which in turns does system calls. HOWEVER, all of these utilities are only allowed to be run by root for a reason; I don't think that you want ordinary users to be able to destroy your systems.
For your question, it appears that this is a backup issue - the better answer is to write a small setuid program that execute these steps as part of a backup pre-exec script.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 08:03 AM
тАО10-19-2001 08:03 AM
Re: vg commands as non-root user
Since these commands use files which are owned by root , u cannot run these command using a non root id. So you can either use sudo , or su to root , or create a user with root previlages and run the commands.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 08:47 AM
тАО10-19-2001 08:47 AM
Re: vg commands as non-root user
The easy way to achieve this will be to make use of utility "sudo".
If you describe your situation, may be some one will have more ways to do it.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 08:59 AM
тАО10-19-2001 08:59 AM
Re: vg commands as non-root user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 10:01 AM
тАО10-19-2001 10:01 AM
Re: vg commands as non-root user
While Bush goes on vacation, I can pretend to be President!!! hooooo.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2001 10:18 AM
тАО10-19-2001 10:18 AM
Re: vg commands as non-root user
you could put those commands into a shell-script and make that executable through SAM for that user...
Start "sam -r" and add that script (running as "root") to SAM's menu. Then give that user the permission for ONLY that menu.
HTH,
Wodisch