hi guys,
We have to implement new local (/etc/default/login) USER security policy on almost 50 stations.
so editing /etc/default/login and /etc/default/passwd will be way too long work.
Can we do the same using some script, I mean editing the above files and putting variables as RETRIES=3, DISABLETIME=60, TIMEOUT=30 etc etc.
Thank you for the assistance.
@Asteroid.
Page 1 of 1
editing files using bash scripts
#2
Posted 22 January 2009 - 12:23 PM
For eg.
You want to replace A with B
sed 's/A/B/g' file > tmp_file
Check your tmp_file
mv tmp_file file
You want to replace A with B
sed 's/A/B/g' file > tmp_file
Check your tmp_file
mv tmp_file file
Vibhor Kumar Agarwal
Share this topic:
Page 1 of 1

Help











