Posts in the ‘Linux’ Category

19 Jul, 2010

merging passwd and shadow files

Posted by: alex in: Gibbering|Linux

I wrote a Perl script to merge /etc/passwd and /etc/shadow files from two hosts In the words of Elizabeth “Now you have two problems?” See below. Sadly wordpress doesn’t do.. well.. any job of indenting. And in case you’re wondering, I’ve munged the passwd hash in the file :P #!/usr/bin/perl open PASSWD, “</etc/passwd” or die […]