- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to enable printing support w/o giving root pri...
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
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
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-15-2007 06:59 AM
тАО01-15-2007 06:59 AM
How to enable printing support w/o giving root priv
I need to create an HPUX ID for a colleague for her to do some support desk job such as cleaning printer queue and running cmds like "bdf" and "ps -ef".
Can anyone help me on decide how to implement this so that I don't need give root priv to her ID but she can do her job?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 07:11 AM
тАО01-15-2007 07:11 AM
Re: How to enable printing support w/o giving root priv
you can use sudo to give access for specific commands
http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=sudo
Another way is o a restricted version of sam, just giving access to the printing area
issue the command sam -r as root to configure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 09:07 AM
тАО01-15-2007 09:07 AM
Re: How to enable printing support w/o giving root priv
Running commands like bdf and ps -ef doesn't require root privileges.
Sudo is the best way to give elevated privliges.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 09:45 AM
тАО01-15-2007 09:45 AM
Re: How to enable printing support w/o giving root priv
In lieue of implementing more software with potential security issues of it's own another option is restricted SAM. ( man sam )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 09:50 AM
тАО01-15-2007 09:50 AM
Re: How to enable printing support w/o giving root priv
Thanks for the answere. I tried the restricted SAM. It worked.
I also need the user to be able to edit the /etc/hosts file. Is there a way to do this w/o giving her root priv? I have not read much about sudo yet so can sudo do this?
Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 09:58 AM
тАО01-15-2007 09:58 AM
Re: How to enable printing support w/o giving root priv
Do you know how to work this out?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 10:03 AM
тАО01-15-2007 10:03 AM
Re: How to enable printing support w/o giving root priv
You must give the user root access to edit the file, otherwise you have to modify the permissions for /etc/hosts which is not at all recommended from a security perspective.
However, sudo can be used to implement this.
/etc/sudoers is the sudo configuration file.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 10:33 AM
тАО01-15-2007 10:33 AM
Re: How to enable printing support w/o giving root priv
Restricted SAM can be customized so removing disk capability will not remove the printer features. SAM cannot give the user permission to edit the /etc/hosts file.
sudo is the best choice for random sysadmin tasks such as lp. It does not exist on new systems so you'll have to download and install it. Then spend a lot of time with the visudo command's man page along with the man page for sudoers. The temptation is to use the ALL shortcut, but don't do it. Simply enumerate the commands the the user is allowed to use -- including parameters as in: vi /etc/hosts
Get a copy of sudo from the Internet Express package at:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2007 10:24 PM
тАО01-15-2007 10:24 PM
Re: How to enable printing support w/o giving root priv
If you are using hp-ux 11.23 you could use hp-ux RBAC (Role Based Access Control). This is developed by HP. You can create roles and assign capabilities (authorizations) to this role. Use cmdprivadm to make additional authorizations. Use authadm to assign authorizations to a role. Use roleadm to add roles, to assign roles to a user, and to list the authorizations on a role.
Another way is by using restricted SAM. What we did was we created a script and added this as customized application on SAM and then assign this to the ordinary user using restricted SAM.
Regards,
Charlie