Find the answer to your Linux question:
Results 1 to 5 of 5
hi all, i am new to linux and trying to learn it , Im using RED HAT9 and i want to create a user on whose log in system should ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3

    User profile and scripts

    hi all,
    i am new to linux and trying to learn it ,

    Im using RED HAT9 and i want to create a user on whose log in system should shut down and message should be broadcast to all users logged on.

    i will be thankfull if my question is answered

    thanks and regards

    vaibhav

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    First RH9 is incredibly out-of-date. You should update to RHEL/CentOS 5. Second, this can only be done by root (shutting down system, etc) or if you give the user sudo privileges. In any case, assuming they are running the bash shell, you would put the shutdown command (with nohup) and broadcast message in the user's .bash_logout script.

    If you don't understand what I am saying above, then you have a lot of studying to do before you are qualified to do this...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3
    Firstly Thank you sir for taking some time out to answer,

    neway i do understand ur answer and i know that i need to study a lot but can the user profile be modified in tht way, is it possible? and how?

  4. #4
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3
    do share me with useful links and study material so tht i can get knowledge

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Most of the answers you need are available in the following locations:

    1. System man pages.
    2. The Linux Documentation Project
    3. Google

    There are also a lot of published books available; some free and online, others for purchase from Amazon.com and your local book store, or to be found at your local library (maybe).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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