Run script at login instead of bash
I'm trying to make a user named "backup" that, when logging in, automaticly runs a perl-script (the backup-rutines) instead of a bash shell.
I've done it by changing the /bin/bash in /etc/passwd to the perl-script. But the perl-script runs some tar-commands, and they won't work if not run thru a shell.
I can only make it work by changing passwd back to /bin/bash and then run the perl-script thru .bash_profile ... but this leaves a big security hole if the script is breaked.
Is there a way to solve this?