- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Purpose of Host_alias in 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
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
тАО05-19-2007 08:25 PM
тАО05-19-2007 08:25 PM
Purpose of Host_alias in SUDO
Can anyone explain whats the use of host_alias in sudoers file.
For example :
cmd_alias = command specified in this cmd_alias this commands will have sudo access
user_alias = users mentioned in this will have sudo access
Host_alias = ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2007 08:59 PM
тАО05-19-2007 08:59 PM
Re: Purpose of Host_alias in SUDO
This usually simply refers to the local system name.
It prevents remote users from using sudo functionality.
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
тАО05-20-2007 06:58 AM
тАО05-20-2007 06:58 AM
Re: Purpose of Host_alias in SUDO
If you have site-wide Unix accounts using NIS or LDAP and a centrally-maintained sudoers file, it's easy to change group memberships and sudo permissions whenever users move from one project to another.
If you have to enforce a strict security policy (maybe because of SOX, HIPPA, some other law or simply company policy), this kind of powerful centralized privilege management can help a lot.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2007 04:38 PM
тАО05-20-2007 04:38 PM
Re: Purpose of Host_alias in SUDO
For each server we have saperate SUDO file ,In which we need to insert the IDs and commands ,Will it possible to configure the sudo file as centralized like NIS ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2007 06:55 PM
тАО05-20-2007 06:55 PM
Re: Purpose of Host_alias in SUDO
If you use hostnames and/or Host_alias lines in your sudoers definitions, those definitions will take effect only when that sudoers file is used on the named host(s).
If your sudoers file says, for example:
Host_Alias SANDBOX = devhost1, devhost2
User_Alias DEVELOPER = user1, user2
DEVELOPER SANDBOX = (root) /usr/local/bin/tcpdump
it means this definition takes effect only on machines listed in the SANDBOX alias, i.e. devhost1 and devhost2. On all other hosts, this definition is *ignored* if it exists in their sudoers file.
(The idea behind this sudo definition is to allow developers run tcpdump as root to debug their network applications on development hosts *only*: it is assumed that running tcpdump on production hosts requires special permission or is not done by the developers. If a new development box is added, you only need to add its name to the Host_Alias line; if developers change, you just edit the User_Alias line.)
It's your task to figure out a good way to copy the sudoers file from one central location (chosen by you) to all the hosts that need it.
For a small-scale setup, I might use scripted rdist or rsync over SSH (with public key authentication to allow automating it). This could be run manually as needed, or set up as a cron job.
In a large enterprise, there might be existing central control systems, like HP OpenView, Control-M or whatever. If one of these can be configured to keep the sudoers files in each host synchronized to one master copy, that's one valid way to solve this problem.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2007 04:04 AM
тАО05-24-2007 04:04 AM
Re: Purpose of Host_alias in SUDO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-24-2007 04:05 AM
тАО05-24-2007 04:05 AM