RCP

Marek Antozi pavuk na 7gods.sk
Úterý Srpen 19 10:22:12 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 19 Aug 2003, Tomas Griger wrote:
>
> Chcem sa spytat na kopirovanie pomocou RCP.Ze na strane cieloveho stroja
> potrebujem RSH server, tak to chapem.Nie je mi vsak s manualu a ani s
> webu jasne, ako docielit autentizaciu.Predpokladam ze na cielovom stroji
> treba v etc, alebo v home adresari usera vytvorit nejaky subor, kde by
> bola zadana IP adresa stroja s ktoreho kopirujem.Je moj predpoklad
> spravny?
>

Dobry den,

chapem Vas problem.

Z manualovej stranky rcp(1) je zrejme: "Rcp does not prompt for passwords; it
performs remote execution via rsh(1), and requires the same authorization.".

Z manualovej stranky rsh(1) je zrejme: "SEE ALSO rlogin(1)".

Z manualovej stranky rlogin(1) je zrejme: "The standard Berkeley rhosts
authorization mechanism is used."

A tu sme skoncili. Toto je bohuzial linux - amaterizmus dovedeny do konecneho
stadia.

Toto najdete v manualovej stranke rsh(1) na solarise: "Each remote machine
may have a file  named  /etc/hosts.equiv containing  a list of trusted
hostnames with which it shares usernames. Users with the same username on
both  the  local and  remote  machine may run rsh from the machines listed in
the remote machine's /etc/hosts file. Individual  users may set  up  a
similar  private  equivalence list with the file .rhosts in their home
directories. Each line  in  this  file contains two names: a hostname and a
username separated by a space. The entry permits the  user named  username
who  is logged into hostname to use rsh to access the remote machine as the
remote user. If the name of the  local  host  is  not found  in the
/etc/hosts.equiv file on the remote machine, and the local username and
hostname are  not  found  in  the remote  user's  .rhosts file, then the
access is denied. The hostnames listed in the /etc/hosts.equiv and  .rhosts
files must be the official hostnames listed in the hosts database; nicknames
may not be used in either of these files.

rsh will not prompt for a password if access  is  denied  on the remote
machine unless the command argument is omitted."

A opat sa mozme vratit k manualovym strankam na linuxe, konkretne
hosts.equiv(5): "

The hosts.equiv file allows or denies hosts and users to use the r-commands
(e.g. rlogin, rsh or rcp) without supplying a password.

The file uses the following format:

[ + | - ] [hostname] [username]

The  username  entry grants a specific user access to all user accounts
(except root) without supplying a password. That means the user is  NOT
restricted  to  like-named  accounts.  The username may be (optionally)
preceded by a plus (+) sign. You can also explicitly deny access  to  a
specific  user  by  preceding  the username with a minus (-) sign. This
says that the user is not trusted no matter what other entries for that
host exist.

Netgroups can be specified by preceding the netgroup by an @ sign.

Be extremely careful when using the plus (+) sign. A simple typographical
error could result in a standalone plus  sign.  A  standalone  plus sign is a
wildcard character that means "any host"!".

Podotykam ze syntax suboru `~/.rhosts' je rozvnaka ako suboru
`/etc/hosts.equiv'.

Je to zvlastne, ale aj ked je v manualovej stranke k hosts.equiv napisane ze
"SEE ALSO rhosts(5)", v systeme takato stranka nieje. Ci je to vseobecne
vlastnost vsetkych linuxov, alebo len RedHat linuxov (rozne verzie), Vam
neviem povedat.

S pozdravom,

- -Marek Antozi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQE/Qd44DfUZjsbiBSwRAvXuAJ41SQPo0+HIUZ9RYhFVj9bevoDucACdGhj8
CxrlNqMisV6CD9NGYBr1CCA=
=PpMB
-----END PGP SIGNATURE-----


Další informace o konferenci Linux