Originally posted by: SystemAdmin
> I have tried the following but I get "Cannot su to
> "root" : Authentication is denied." without even
> asking for the password.
>
> for remote_h in ServerA ServerB
> do
> ssh $remote_h su - # Here I want the script
to wait > #
until I put in the password.
> whoami >> result.txt
> done
ssh will normally prevent remote login as root.
I can think of no valid reason you would wish to
give unlimited (root) access to a remote entity
otherwise unidentified.
In general, good administrative practice avoids
the use of root access, in favor of offices
(fictious users that own limited sets of related
files/processes), monitored privelege tools (e.g.
sudo(8)), and capabilities (see capabilities(7)).
Warning,
#AIX-Forum