Re: rsh problem - "password expired" message

From: tvr (tvr1729_at_yahoo.com)
Date: 02/21/04


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.



Relevant Pages

  • how to enable rsh on solaris 10
    ... I m trying to execute some command on my Solaris 10 box from Windows ... rsh {servername} -l username comamnd ...
    (comp.unix.solaris)
  • Re: rsh problem - "password expired" message
    ... Put the servername and USERNAME in them. ... > Is there any other way to execute a command as another user? ... You can also use ssh as you are using rsh. ...
    (comp.unix.shell)
  • Re: Does xp_cmdshell kill commands?
    ... default of 600 and "query timeout" is set at the default ... When run "normally" (from a command prompt or batch file) it worked ... including the native Windows rsh command and Cygwin's rsh ... >> Linux, VMS, and a Windows system running a Windows rshd. ...
    (microsoft.public.sqlserver.server)
  • Re: How to detach from remote command?
    ... the rsh keeps the connection open until the sleep command ... rsh remote sleep 100 "&" ... to the remote machine. ...
    (comp.os.linux)
  • Re: Cannot rsh from linux to aix
    ... Kerberos was running on my Linux machine, but not on the AIX machine. ... The key command to run was ... (which returned that rsh was running through kerberos) ... > remote host. ...
    (comp.unix.admin)