cancel
Showing results for 
Search instead for 
Did you mean: 

login script

chetana07
Frequent Advisor

login script

can login script be kept any where else other than .profile so that no one can change it in HP-UX 11.11i?
Any reply will be helpful.
3 REPLIES
Pete Randall
Outstanding Contributor

Re: login script

It doesn't matter where it is kept if the permissions are not set properly to restrict access.


Pete

Pete
spex
Honored Contributor

Re: login script

Hello,

You can put the file containing the login commands anywhere you want, and then source the file from the user's .profile (e.g. '. /etc/profile-accounting'). Alternatively,
you could just add the commands to /etc/profile, or conditionally source the file based on a check of the current user in /etc/profile. Make sure the file and the directory containing it has restricted write permission.

PCS
chetana07
Frequent Advisor

Re: login script

Thanks a lot for the response