Results 1 to 2 of 2

Thread: How to make a scrit that runs on startup and runs commands as different users

  1. #1
    Join Date
    Aug 2006
    Beans
    198

    How to make a scrit that runs on startup and runs commands as different users

    I need to make a script that runs when a user logs on that starts a graphical program as another user. i can do it by hand, su user2, user2's password, run command, but I have no idea how to automate that into a script, as I cannot feed the su the password automatically.

    security of user2's password is not significant.

  2. #2
    Join Date
    Nov 2006
    Beans
    26
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to make a scrit that runs on startup and runs commands as different users

    here you have the answer...


    Good Luck!
    Last edited by angelmartinezn; May 24th, 2007 at 03:25 PM.

    Good Luck !!!!!

Bookmarks

Posting Permissions

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