Re: rsh problem - "password expired" message
From: tvr (tvr1729_at_yahoo.com)
Date: 02/21/04
- Next message: jwk: "Re: Testing existance of substring in string..."
- Previous message: Frank Hickman: "Testing existance of substring in string..."
- In reply to: Carlos J. G. Duarte: "Re: rsh problem - "password expired" message"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Feb 2004 02:34:47 -0800
"Carlos J. G. Duarte" <cjgd@clix.pt> wrote in message news:<c13r80$1ckbmh$1@ID-201565.news.uni-berlin.de>...
> tvr wrote:
>
> > I have created .rhosts files in both the accounts and entered
> > the servername and passwords in them.
>
> Hum? Say what? Put the servername and USERNAME in them.
>
> >
> > Is there any other way to execute a command as another user?
> >
>
>
> (1)$ su -c 'command' user
> (2)$ sudo -u user command
>
> (3)
> [as root]
> chmod u+s command
> chown user command
> [as other_user]
> ./command
>
>
> You can also use ssh as you are using rsh. I've no idea why is rsh
> complaining about passwd and you still can login as that user...
Thanks for the reply carlos.
Anyway I used expect to do the task. I will try that some other time.
- Next message: jwk: "Re: Testing existance of substring in string..."
- Previous message: Frank Hickman: "Testing existance of substring in string..."
- In reply to: Carlos J. G. Duarte: "Re: rsh problem - "password expired" message"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|