Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I'm making a script that change the root password every 12 hours! the idea is: that when a user logged in he need to read first his mail with ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Location
    Nijmegen, The nethelands
    Posts
    3

    reading a other users variables

    Hi,

    I'm making a script that change the root password every 12 hours! the idea is: that when a user logged in he need to read first his mail with a new password. The script (that is running as root in cron) sends the mail with the new password by doing
    echo "this is the new password: $pasword" |mail -s "password" user
    When user opens his mail to have a look to the new password it shows him: "this is the new password: " So it seems that user can't read the variable because itś a variable of root. Is there a way that only a special group of users can't read this variable?

    Thanks for your help!

    With kind regards

    Jerome Kuchler

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    I think you are making a slim mistake.
    If you write a daemon that runs are root that waits for a command over dbus or another form of ipc it will wrok fine.

    Show us what you have now


    ps. Good to see some decent people are here (I am refering to the fact you are from Nijmegen, as am I )


    Edit: pps. Why would you want this anyway? There are better More secure ways to hide the root password.
    New Users, please read this..
    Google first, then ask..

Posting Permissions

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