Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ficheros=( /etc/sudoers /etc/pam.d/sshd )
- for i in ${ficheros[@]}; do
- lsattr $i > ${i}.txt
- stat $i >> ${i}.txt
- cat $i >> ${i}.txt
- gpg --detach-sign -o ${i}.sig ${i}.txt
- mv ${i}.sig ${i}.txt /root
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement