- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sudo env
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
08-15-2000 01:58 PM
08-15-2000 01:58 PM
sudo env
philc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 02:15 PM
08-15-2000 02:15 PM
Re: sudo env
If they are in the sudoers file but the root access is not itemized, sudo su -
The entry in the sudoers file to prevent root access is
!/usr/bin/su *root*,!/usr/bin/su "",!/usr/bin/su su -
If the users do not have the above entry in the sudoers file, then sudo su - and this command will be logged (If loggin options are compiled in)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 02:19 PM
08-15-2000 02:19 PM
Re: sudo env
Certain commands to be executed via sudo as root require the root environment, esp. $PATH to either find the command, or for a script to execute correctly ... how to get this to work is the question.
e.g. commands in /usr/sbin ... not in normal path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 02:46 PM
08-15-2000 02:46 PM
Re: sudo env
Try re-sourcing your profile. As root, do:
# . .profile
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 03:22 PM
08-15-2000 03:22 PM
Re: sudo env
$[SUDO]
As a script executes, each command that calls sudo is being logged.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 03:37 PM
08-15-2000 03:37 PM
Re: sudo env
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2000 03:40 PM
08-15-2000 03:40 PM
Re: sudo env
To get any users environment is the su - command, this should be no different.
Did you compile? If so, what options did you use?
A site that has good sudo info is www.courtesan.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2000 08:48 AM
08-16-2000 08:48 AM