Running a program when a user logs on - Linux

This is a discussion on Running a program when a user logs on - Linux ; I want to be able to run a program on log-on, but just for a certain user. Using runlevel 5. What is the easiest way to do this? Don...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Running a program when a user logs on

  1. Running a program when a user logs on

    I want to be able to run a program on log-on, but just for a certain user.
    Using runlevel 5. What is the easiest way to do this?

    Don

  2. Re: Running a program when a user logs on

    On Tue, 15 Mar 2005 18:27:29 -0500, DHess wrote:
    > I want to be able to run a program on log-on, but just for a certain user.
    > Using runlevel 5. What is the easiest way to do this?


    Please read http://www.catb.org/~esr/faqs/smart-questions.html
    Always provide distribution, release, and if Mandrake, community,
    official, cooker, when posting questions.
    It could help you get better answers.


    You can create a script in ~userlogin/.kde/Autostart to run anytime they start
    kde desktop manager. You can call a script in ~userlogin/.bash_profile or you
    can create a kludge in login files to see who is logging in and call
    your script from there.

    Just depends on what OS and which shell started by the user as to
    where to place the script.

  3. Re: Running a program when a user logs on

    On Tue, 15 Mar 2005 17:37:47 -0600, Bit Twister wrote:

    > You can create a script in ~userlogin/.kde/Autostart to run anytime they start
    > kde desktop manager. You can call a script in ~userlogin/.bash_profile or you
    > can create a kludge in login files to see who is logging in and call
    > your script from there.
    >
    > Just depends on what OS and which shell started by the user as to
    > where to place the script.


    It's FC 3. Thanks for the information.

    Don


  4. Re: Running a program when a user logs on

    ~username/.bash_profile
    always runs on login for a user

    ~username/.bashrc
    runs whenever the bash shell is run

    ~userlogin/.kde/Autostart
    runs when user logs with KDE as there desktop


  5. Re: Running a program when a user logs on

    On Wed, 16 Mar 2005 14:03:32 -0800, fsuarez2005 wrote:

    > ~username/.bash_profile
    > always runs on login for a user
    >
    > ~username/.bashrc
    > runs whenever the bash shell is run


    You can also create a .logon file... or is it .login?, in the user
    directory.

    --
    Life is short, but wide. -KV


+ Reply to Thread