Re: rsh problem - "password expired" message
From: Carlos J. G. Duarte (cjgd_at_clix.pt)
Date: 02/20/04
- Next message: Carlos J. G. Duarte: "Re: quoting quotes withion a (bourne shell) script line"
- Previous message: Carlos J. G. Duarte: "Re: sed question - both ' and " are in the pattern?"
- In reply to: tvr: "rsh problem - "password expired" message"
- Next in thread: tvr: "Re: rsh problem - "password expired" message"
- Reply: tvr: "Re: rsh problem - "password expired" message"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 Feb 2004 02:26:42 +0000
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...
-- carlos ** http://cgd.sdf-eu.org
- Next message: Carlos J. G. Duarte: "Re: quoting quotes withion a (bourne shell) script line"
- Previous message: Carlos J. G. Duarte: "Re: sed question - both ' and " are in the pattern?"
- In reply to: tvr: "rsh problem - "password expired" message"
- Next in thread: tvr: "Re: rsh problem - "password expired" message"
- Reply: tvr: "Re: rsh problem - "password expired" message"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|