Find the answer to your Linux question:
Results 1 to 3 of 3
I want to understand what scripts/commands run when a user login is performed. I couldn't find any documentation in the SuSE manuals. I am running SuSE 9.1 Pro. Does anyone ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Location
    Colorado, USA
    Posts
    6

    Login Sequence


    I want to understand what scripts/commands run when a user login is performed. I couldn't find any documentation in the SuSE manuals. I am running SuSE 9.1 Pro.

    Does anyone know where this is documented?

    This desire to understand stems from wanting to start the MySQL server deamon automatically when a specific user account logs onto the system. I have limited hardware platform and want to experiment with MySQL, but I don't think I want to have that server running when I don't need it.

    Does the MySQL server process really impact the system if I were to just start it when Linux Boots?

    Thanks

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    The file that is executed on login is ~/.bashrc. You can add commands to be executed to this. But keep in mind that this will be executed EVERY time he logs in (i.e.: Logging in to a different terminal).
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Linux User
    Join Date
    Jul 2004
    Posts
    256
    It's kind of complicated, depending on how bash is invoked, it will read different files. To know exactly what and when so you know what files to edit, ready "man bash" and then type "/INVOCATION" and hit enter to jump to the invocation section.
    --monkey

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •