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

0

1 Answer 1

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

3
  • 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, 2013 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, 2013 at 20:16
  • You could run the bashrc files by sourcing them...but that is not really the thing to do)
    – thom
    Nov 28, 2013 at 20:19

Not the answer you're looking for? Browse other questions tagged .