Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.