- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Quick Question on Sudoers file
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
06-15-2010 10:14 AM
06-15-2010 10:14 AM
Quick Question on Sudoers file
I have several servers where I have add few lines to sudoers file and not good with scripting.
Few lines I am trying to add under "# Cmnd alias specification" and few lines "# User privilege specification".
Now, the question that I have is can add at the bottom of file and things will work or they have to go in a set order at correct location in the file.
The reason I am asking because I have 100+ servers and don't want to "vi" the file on each server to keep the correct format. I was planning to just echo the lines and add them at the bottom of file.
Like they say quantity and quality don't go together.
Thanks for your help in advance.
Regards,
MJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2010 10:23 AM
06-15-2010 10:23 AM
Re: Quick Question on Sudoers file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2010 10:26 AM
06-15-2010 10:26 AM
Re: Quick Question on Sudoers file
> server [...]
Does each server have a unique file, or can
you edit one, and then copy it around?
If not, then many editors can be scripted.
> Like they say quantity and quality don't go
> together.
In my experience, they can coexist just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2010 10:34 AM
06-15-2010 10:34 AM
Re: Quick Question on Sudoers file
Sorry, each server could have different file. also some servers have sudoers file under /etc/ and some might have under /opt.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2010 11:01 AM
06-15-2010 11:01 AM
Re: Quick Question on Sudoers file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2010 07:19 PM
06-15-2010 07:19 PM
Re: Quick Question on Sudoers file
list1 and list2
if ssh_keys are distributed on the system you can do it in follwoing way:
for server in `cat list1`
do
ssh $server "echo "sudoer entry" >> /filelocation"
done
Hope u will test before you run it..
All the best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2010 01:01 PM
06-19-2010 01:01 PM
Re: Quick Question on Sudoers file
Regards,
MJ