- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sudo Config
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
09-10-2007 03:46 AM
09-10-2007 03:46 AM
How do I allow a normal user to cancel any print job with sudo ??
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 03:54 AM
09-10-2007 03:54 AM
Re: Sudo Config
You give them sudo powers of the lp commands for example lpsched
I'm assuming a working knowledge of sudo.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 03:56 AM
09-10-2007 03:56 AM
Re: Sudo Config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 05:23 AM
09-10-2007 05:23 AM
Re: Sudo Config
How do I can to give permissions to the user ???
/etc/sudoers -> Ideal Config ???
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 05:54 AM
09-10-2007 05:54 AM
Re: Sudo Config
> How do I allow a normal user to cancel any print job
You also have the ability to define a print queue's job's as "cancelable" by any user. See the manpages for 'lpadmin(1M)'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 08:24 AM
09-10-2007 08:24 AM
Re: Sudo Config
Fail!!! but...
/etc/sudoers
# User alias specification
User_Alias USERS=user1,user2
# Cmnd alias specification
Cmnd_Alias PRINTING=/usr/bin/cancel
# Defaults specification
Defaults syslog=auth
# User privilege specification
root ALL=(ALL) ALL
user1 ALL=NOPASSWD:/usr/bin/cancel
user2 ALL=NOPASSWD:/usr/bin/cancel
help! please!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 08:55 AM
09-10-2007 08:55 AM
Re: Sudo Config
USERS ALL=NOPASSWD:/usr/bin/cancel
I would never specify a command be run without the user entering a password.
That's just me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 08:55 AM
09-10-2007 08:55 AM
Re: Sudo Config
USERS ALL=NOPASSWD:PRINTING
I would never specify a command be run without the user entering a password.
That's just me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2007 08:58 AM
09-10-2007 08:58 AM
Re: Sudo Config
You need to connect the aliases. At this point sudo doesn't know user1 or user2 it knows the alias USERS and the command alias PRINTING. The last line should read:
USERS ALL=NOPASSWD PRINTING
I would never specify a command be run without the user entering a password.
That's just me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 01:00 AM
09-11-2007 01:00 AM
Re: Sudo Config
Thanks Glenn!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2007 01:25 AM
09-11-2007 01:25 AM