Where to put some sh ...
I'd like to put some shell scripts to run everytime the user logs in, and some other scripts to run everytime the system starts. Can you help me where to put them ?
Thanx |
Which distro are you running and what do the scripts do?
|
Usually you can put it in users ~/.bash_profile file
Code:
[root@squirrel etc]# cat /home/roman/.bash_profile add them to /etc/rc.d/rc.local script file. But as XavierP said it depends on your distro. :study: :study: :study: |
I use RHEL 4
|
Yes, it's OK for you if you follow them.
Notice that users can modify their ~/.bash_profile and ~/.bashrc scripts, so if you want to start some scripts/programms when user logs in the system and don't want to allow that user to bypass it, you should run your scripts/programms from /etc/zlogin or /etc/zprofile scripts. |
All times are GMT -5. The time now is 05:26 PM. |