- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ID to run specific command
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
04-22-2008 06:43 PM
04-22-2008 06:43 PM
I have a junior administrator whom I would like him to do some specific OS task.
I do not want to grant him root access and assigning UID 0 is a definite no.
I have read in posts here that "sudo" can be used, but wouldn't that also allow commands like "rm *.*" to be executed also?
Is there a way for me to only limit his access to certain specific commands like, for example, "lpstat"?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 06:55 PM
04-22-2008 06:55 PM
Re: ID to run specific command
Do you heard about ACL?
May be this way can help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 07:11 PM
04-22-2008 07:11 PM
Re: ID to run specific command
Could you care to elaborate on ACL?
How do I implement it?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 07:23 PM
04-22-2008 07:23 PM
Re: ID to run specific command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 07:35 PM
04-22-2008 07:35 PM
Re: ID to run specific command
Nobody is crazy to fire rm * on a system if he has worked on UNIX.
Just ask him to take care while working then he would be more productive.
If you want him to run only a coulple of command try ACL as said by Ahsan or you have use restricted shell and copy some of basic command (if they are very few) in his shell.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 07:38 PM
04-22-2008 07:38 PM
Re: ID to run specific command
I have read it and it seems that it's for SD (software distribution).
How do I go about implementing it for OS command like "lpstat", or "ls"?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 07:50 PM
04-22-2008 07:50 PM
Re: ID to run specific command
Thanks for your reply.
It's just a precaution that I would like to take as he fresh with zero unix knowledge.
"Nobody is crazy to fire rm * on a system if he has worked on UNIX"? Fact is - he has never worked in a unix environment.
Anyway, as I only need him to perform specific tasks, removing other access would seem more practical than asking him to be careful, as even experience administrators do sometimes make mistakes, too. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 07:56 PM
04-22-2008 07:56 PM
Solutionwell from the beginning u seens to be intersted in lpstat command.
You can copy this command in this home directory....and it will work for him....
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 08:24 PM
04-22-2008 08:24 PM
Re: ID to run specific command
may be this can help you briefly
http://docs.hp.com/en/B2355-90950/ch08s04.html
You may consider another thing. Give him a account with restricted shell and copy the commands he need to do his job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 09:03 PM
04-22-2008 09:03 PM
Re: ID to run specific command
Will explore the shell alternative for him.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2008 01:21 AM
04-23-2008 01:21 AM
Re: ID to run specific command
Yes, you can limit commands to sudo.
There is also HP's RBAC. See these links:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1215907
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1206541
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1204720
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2008 01:57 AM
04-23-2008 01:57 AM
Re: ID to run specific command
you may also wish to write a simple menu driven application that allows him to run the restrictive commands.
In this case, he won't even need to know the command that would be run in the background.
Indeed, SUDO will be the tool of choice in any cases.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2008 04:46 AM
04-23-2008 04:46 AM