-1

I want to get a script started on each login from domain users... how to do it? /etc/init.d/ is on startup not on login afaik.

Seth
  • 58,122

1 Answers1

0

The startupfile for each user is in the file .bashrc in their home directory.

if you want it to be system wide (i.e. for all users) you can add your script to the end of /etc/bash.bashrc

thom
  • 7,542
  • how can i start the line ive added as root. i thoght the bash.bashrc would be started trhough root, but it is not allowed. how can i work this out? – user197194 Nov 28 '13 at 19:48
  • Just log out and log in again, that should start your script. ( bashrc files are not executable but sourced.) – thom Nov 28 '13 at 20:16
  • You could run the bashrc files by sourcing them...but that is not really the thing to do) – thom Nov 28 '13 at 20:19