Operating System - HP-UX
1752756 Members
4765 Online
108789 Solutions
New Discussion юеВ

Script referenced by aliases file is run by what account?

 
SOLVED
Go to solution
Paul Maglinger
Regular Advisor

Script referenced by aliases file is run by what account?

HP-UX 11.23. I created an entry in the aliases file pointing to a script. Can anyone tell me under which account the script will run as?
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Script referenced by aliases file is run by what account?

The script will run as the user that runs the alias/command.
Bill Hassell
Honored Contributor
Solution

Re: Script referenced by aliases file is run by what account?

If you are referring to /etc/mail/aliases, then commands or scripts are run as daemon.


Bill Hassell, sysadmin
Paul Maglinger
Regular Advisor

Re: Script referenced by aliases file is run by what account?

I can see a potential problem here if someone modifies the script and it runs as daemon. Is there a way to make the script run as another user account?
Dennis Handly
Acclaimed Contributor

Re: Script referenced by aliases file is run by what account?

>it runs as daemon. Is there a way to make the script run as another user account?

You might want to check in your script by doing the id(1) command to make sure what the ID is.

I use procmail in .forward and all of the files are owned by the user's name.