- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is possible to run copy_boot_tape with sudo?
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
тАО02-23-2011 03:17 AM
тАО02-23-2011 03:17 AM
Is possible to run copy_boot_tape with sudo? We have tried it but it's produced the following error:
host> sudo copy_boot_tape -p /dev/datn -d sm-5-sii-11002
Password:
/opt/ignite/bin/copy_boot_tape: awk: Execute permission denied.
/opt/ignite/bin/copy_boot_tape[13]: == 1 : Syntax error
Putting the boot area on tape.
/opt/ignite/bin/copy_boot_tape[6]: dd: Execute permission denied.
Tape may be write protected.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 04:14 AM
тАО02-23-2011 04:14 AM
Re: Is possible to run copy_boot_tape with sudo?
Can you post sudo -l command output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 04:16 AM
тАО02-23-2011 04:16 AM
Re: Is possible to run copy_boot_tape with sudo?
> sudo -l
Password:
User plaza may run the following commands on this host:
(root) NOEXEC: /opt/ignite/bin/copy_boot_tape, /usr/bin/dd, /sbin/awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 06:35 AM
тАО02-23-2011 06:35 AM
SolutionNOEXEC means /opt/ignite/bin will be run in such a way that execv() family of system calls will be disabled - in other words, the copy_boot_tape process will run, but it cannot run any sub-processes.
Since copy_boot_tape is a script, the ability to run sub-processes is rather essential to it. If you use NOEXEC with a script, it's very likely the script won't work when run with sudo.
The NOEXEC restriction is intended more for interactive programs that contain shell escape functionality, like "more" or "vi". For example, you might grant the user permission to view a particular file that must normally be accessible by root only:
plaza somehost=(root) NOEXEC: /usr/bin/more /etc/opt/ipf/ipf.conf
If NOEXEC is not used here, the user can run the allowed "sudo more /etc/opt/ipf/ipf.conf", then type "!/usr/bin/sh" while the more command is running to get a root shell.
Adding /usr/bin/dd and /sbin/awk to the sudoers definition line won't allow copy_boot_tape to run them - it just allows the user to run dd or awk on any file or device on the system, which probably isn't what you want.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 06:53 AM
тАО02-23-2011 06:53 AM
Re: Is possible to run copy_boot_tape with sudo?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2011 06:53 AM
тАО02-23-2011 06:53 AM