LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Logon scripts (https://www.linuxquestions.org/questions/linux-newbie-8/logon-scripts-562039/)

gigaloo15801 06-15-2007 10:11 AM

Logon scripts
 
How can i set up a scripts that will apply to all users at the logon.
I know theres a file called .bashrc in each user s home directory. But that file only affected the user.

druuna 06-15-2007 10:14 AM

Hi,

/etc/profile could be used. It's global for all users (I do assume they all have a bash or (pd)ksh shell).

Hope this helps.

gigaloo15801 06-15-2007 10:26 AM

hurray !! thanks dude. actually the good file is /etc/bashrc but i could never find it without the informations in /etc/profile. :D

druuna 06-15-2007 10:35 AM

Hi,

You're welcome :)

BTW: /etc/bashrc could be the file you meant, but this file is not always read (depending on how your distro set things up). Most of the time /etc/profile is read during startup. For the details on which files are read take a look at bash' manpage (The INVOCATION section).


All times are GMT -5. The time now is 02:02 PM.