- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why doesn't this work!?!
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
07-16-2003 08:49 AM
07-16-2003 08:49 AM
The script is extremely simple...it contains:
lpshut
sleep 5
lpsched
The script is owned by root and has the setuid bit on. The group is dba, which is the group the oracle account belongs to.
r_sr_x___ root dba 46 07/16/2003 bounce_sp
When the script is executed by the oracle user this message comes up:
/usr/sbin/lpshut: this command for use only by LP Administrators
/usr/sbin/lpsched: this command for use only by LP Administrators
Any ideas??
Thanks, Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 08:52 AM
07-16-2003 08:52 AM
Re: Why doesn't this work!?!
Use sam -r
This cuts out lots of issues like htis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 08:53 AM
07-16-2003 08:53 AM
Re: Why doesn't this work!?!
# whereis lpshut
lpshut: /usr/sbin/lpshut /usr/share/man/man1m.Z/lpshut.1m
# ll /usr/sbin/lpshut
-r-sr-xr-x 1 lp bin 20480 Jul 26 2002 /usr/sbin/lpshut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 08:55 AM
07-16-2003 08:55 AM
Re: Why doesn't this work!?!
Facing a similar situation, I set up restriced SAM to allow my operators to manage print queues. It might be an option in your case and a little more secure than having setuid scripts hanging about.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 09:25 AM
07-16-2003 09:25 AM
Re: Why doesn't this work!?!
I'm not absolutely certain but I suspect that the lpshut/lpsched programs can only be run by the 'lp' user or by root.
Have you considered using sudo as a way around this?
HTH,
Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 10:40 AM
07-16-2003 10:40 AM
Re: Why doesn't this work!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 08:23 PM
07-16-2003 08:23 PM
Re: Why doesn't this work!?!
The script will not will run with the setuid but the single script child not.
You could write a imilar C source, compile it and give setuid to the executable. It should work.
Again, theese are only suggestions, I an not shure about the setuid mechanism.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 08:36 PM
07-16-2003 08:36 PM
Re: Why doesn't this work!?!
Further to Francesco's response above, the setuid script will run as EUID (effective uid) of root. This is not enough permissions to run the lp* commands.
As the other suggestions state, consider using "sudo" or "sam" to achieve your aims.
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:45 AM
07-17-2003 12:45 AM
SolutionYou HAVE to run set UIDs to rot through a C program "wrapper". There are loads listed on the forum
e.g. Darrel's comment
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xeb5a1012aa92d5118ff10090279cd0f9,00.html
I've attached his prog
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2003 12:46 AM
07-17-2003 12:46 AM