Re: NIS and /etc/profile
From: Tim Haynes (usenet@stirfried.vegetable.org.uk)Date: 06/29/02
- Next message: Grant Edwards: "Re: Enquiry regarding Linux in Mission Critical situation"
- Previous message: tilo: "Re: Is there a new DNS exploit?"
- In reply to: Tony: "Re: NIS and /etc/profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Tim Haynes <usenet@stirfried.vegetable.org.uk> Date: Sat, 29 Jun 2002 16:12:53 +0100
"Tony" <tony.wong@sbcglobal.net> writes upside-down like a silly wombat:
> to every single machine?
Yes. What's so hard, and why not consider implementing a proper
/usr/local/share/etc/ tree for the purpose?
Or why not do it all in batch mode? Assuming you have ssh key access to
either the root account, or a user with sudo, on each box, something like
the following would do the trick:
for i in `cat host_list.txt`
do
echo Fixing box $i
ssh root@$i "echo somecommands >> /etc/profile"
done
ssh -t is invaluable for sudo over ssh.
~Tim
-- Meet me at the ocean |piglet@stirfried.vegetable.org.uk the sunrise meets the day |http://spodzone.org.uk/ on the hill |
- Next message: Grant Edwards: "Re: Enquiry regarding Linux in Mission Critical situation"
- Previous message: tilo: "Re: Is there a new DNS exploit?"
- In reply to: Tony: "Re: NIS and /etc/profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|