Can I replicate an aliase file from one AIX server to another? Must I maintain these files like you would host files. This is for sendmail. We would like to aliase people at their facility rather than aliase every user at a central location.
Nothing stopping you from doing this. Simply copy the file to the other server and issue the "newalaliases" command afterwards to make it active.
I keep a copy of all such files in a central repository on a seperate server, and by using rdist distribute them to the servers involved. It makes it easier to maintain, only one file to edit.
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
Fairly simple. Create a file called whatever, in my case I called it "dfile"
Place this in the file, replacing the local path and remote server name with your details:
/local/path/to/file/aliases-> remote_server_name
install /etc/aliases ;
special "newaliases" ;
Make sure the aliases file has the same permissions and ownership as the file on the remote server else you will get errors.
To verify without update: rdist -vf /path/to/dfile
To execute: rdist -f /path/to/dfile
Rdist can be used more securely via ssh, but it is necessary to use non-password authentication (i.e. public key/knownhosts) as you cannot pass passwords. To do this use the following:
rdist -P /usr/local/bin/ssh -f /path/to/dfile
I simply created a script called sdist with this in it and place it in /usr/bin:
rdist -P /usr/local/bin/ssh $1 $2
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.