Skip to content

Set up group, passwd, shadow

OUT OF DATE as of 2008-11-01.

Put script in cron.daily on Algol:
#!/bin/bash
# Copy /etc/passwd /etc/shadow /etc/groups to /etc/secret directory
# Created by:
# Mark Knight
# 4/25/06
/bin/cp /etc/shadow /etc/secret/
/bin/cp /etc/passwd /etc/secret/
/bin/cp /etc/group /etc/secret/
/bin/chmod -R u=r,go= /etc/secret/
exit 0

Copy script to local /etc/ folder on clients:

#!/bin/bash
# Copy /etc/passwd /etc/shadow /etc/groups from /etc/secret directory
# Created by:
# Mark Knight
# 4/25/06

/bin/cp /etc/secret/shadow /etc/
/bin/cp /etc/secret/passwd /etc/
/bin/cp /etc/secret/group /etc/

/bin/chmod u=rw,go=r /etc/group
/bin/chmod u=rw,go=r /etc/passwd
/bin/chmod u=r,go= /etc/shadow

exit 0
Include client computer in Algol’s /etc/exports, and put /etc/secret in client computer’s NFS mounts in /etc/fstab.

Published inConfigurationOld as of 2009

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *