Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cut -d':' -f'1,6' /etc/passwd | while IFS=: read username userhome; do
- rcfile="$userhome/.rc"
- if case $rcfile in "/home"*) true;; *) false;; esac; then
- if test -x "$rcfile"; then
- su -c "$rcfile" "$username"
- fi
- fi
- done
Add Comment
Please, Sign In to add comment