Remote Access




                       userA
                  rlogin or rsh/rcp
                        |                          host X
   ---------------------|------------------------------------ 
                        v                        remote host
                      userA          (NO)
                  in /etc/passwd? ----------+
                        |                   |
                        |(YES)              |
                        |                   |
                        v       (YES)       |
                   Superuser?----------+    |
                        |              |    |
                        |              |    |
                        |(NO)          |    |
                        |              |    |
             (YES)      v              |    |
    Access  <-----   host X            |    |
    allowed        /etc/hosts.equiv?   |    |
                        |              |    |
                        |              |    |
                    (NO)|<-------------+    |
                        |                   | 
                        |                   | 
                        |                   | 
            (YES)       v                   |
    Access <----- host X , userA            |
    allowed            in                   |
                 $HOME/.rhosts?             |
                        |                   |
                        |                   |                                   
                    (NO)|<------------------+                                   
                        |
                        |                     +----------------------+
                        v                     |                      |
                     rlogin   (rlogin)        v                      |
                       or ---------------> Password ---> Password----+
                     rsh/rcp               prompt        correct?
                        |                                  |
                        |                                  |
               (rsh/rcp)|                                  |(YES)
                        v                                  v
                     Access                             Access
                     denied                             allowed