Find the answer to your Linux question:
Results 1 to 3 of 3
In linux red hat system, and I don't have the admin account, but i want to wrtie a script for the follwing: 1. display a message to the user when ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    help, dispaly message in text login and GUI login.

    In linux red hat system, and I don't have the admin account, but i want to wrtie a script for the follwing:

    1. display a message to the user when they use text login(remote) login..

    2. how to pop up a xmessage in start up program, when user use a GUI login

    Thank you in advance!

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    If you do not have root rights and the admin does not grant you access to certain files, you can't. This is the whole point about administrative accounts -- to prevent ordinary users to annoy the others.

    What you can do is to have a daemon running that periodically checks whether new users log in (who) and have it send messages to them from your account (write, wall)
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    Thank you for your answer. Can I assume that I have a admin account since writing this script is only for a test condition. I just need to figure out the way to do it. thanks!

Posting Permissions

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