HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with setting up sudo
Operating System - HP-UX
1833871
Members
1710
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-07-2001 09:27 AM
04-07-2001 09:27 AM
Help with setting up sudo
I am trying to get sudo to work on a couple different HP-UX 11.00 boxes. I downloaded and ran the sudo-1.6.2*.depot.gz and gunzipped it.
Then installed it using swinstall. What else do I have to do to get it to work? Do I have to add to the PATH?
I have a sudoers file in usr/local/etc. and as a side question: any users listed in the sudoers file have to be added as local users on the server, right?
Thanks kindly
Jim
Then installed it using swinstall. What else do I have to do to get it to work? Do I have to add to the PATH?
I have a sudoers file in usr/local/etc. and as a side question: any users listed in the sudoers file have to be added as local users on the server, right?
Thanks kindly
Jim
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2001 08:16 PM
04-07-2001 08:16 PM
Re: Help with setting up sudo
To answer your questions:
1) Yes I would add sudo to the PATH. It doesn't do you any good if you can't get to it easily. :)
2) The users you define in sudo should already be defined locally on your machine. Again, sudo won't work very well if the user isn't logged in. If they can't already log in to the box, why are you setting them up in your sudoers file?
1) Yes I would add sudo to the PATH. It doesn't do you any good if you can't get to it easily. :)
2) The users you define in sudo should already be defined locally on your machine. Again, sudo won't work very well if the user isn't logged in. If they can't already log in to the box, why are you setting them up in your sudoers file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2001 01:27 PM
04-08-2001 01:27 PM
Re: Help with setting up sudo
Thanks, I will add it to PATH.
Excuse the dumb question about users/sudoers.
I am learning ;-)
Thanks again.
Excuse the dumb question about users/sudoers.
I am learning ;-)
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 02:30 AM
04-09-2001 02:30 AM
Re: Help with setting up sudo
after you have downloaded and installed the sudo software, you should add the sudo man pages:
#MANPATH=$MANPATH:/opt/sudo/man
#man sudo
#man visudo
#man sudoers
Now you must define which users can use, execute which commands with root permissions via the /etc/sudoers configuration file.>This file can be created and modified using visudo cpommand.
It could be like this:
#visudo
user1 ALL=/usr/sbin/lpshut,/usr/sbin/lpsched
dba ALL=/sbin/shutdown,/sbin/reboot
This file allows user1 to stop and start lp scheduler on any host with sudo installed and dba to shut and reboot.
To run commands:
login; user1
Passord: ******
$sudo /usr/sbin/lpshut
federico
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP