Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2004
    Posts
    3

    Unanswered: How to change the login user in non-interactive mode

    I want to write a shell script which should change the login user to some other user(both login id and password need to be hard coded).

    I used the SU utility to change the login user to another user. But I am
    not able to supply the password in the non-interactive mode.

    I hope we cannot pass argument to SU command.

    So, How to change the login user using scripts ?

    Regards
    Murugesan

  2. #2
    Join Date
    Jun 2004
    Posts
    20
    try with expect

    srsjc

  3. #3
    Join Date
    Sep 2004
    Posts
    3
    Can you explain little bit detail how to use expect ?

    Regards
    Murugesan

Posting Permissions

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