Simple...
su - test
The '-' indicates ththat you should also invoke the environemnt on the
user.
For more information, please review the su man pages.

[EMAIL PROTECTED] wrote:

> Hello all!
>
>  How can I, being root, execute some command
>  under some other user ?
>   For ex., I have user 'test' on remote host 'rhost` and
>   want to execute `rsh rhost ls` being root.
>    Now I get 'login incorrect' because it's trying to rsh
>    under root.
>
>    Regards,
>    Andrei
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to