[BACK]Return to anoncvs.shar CVS log [TXT][DIR] Up to [local] / www

Diff for /www/anoncvs.shar between version 1.10 and 1.11

version 1.10, 1998/12/22 22:55:19 version 1.11, 1999/01/06 22:07:47
Line 159 
Line 159 
 X     cvspserver                2401/tcp                # CVS client/server operations  X     cvspserver                2401/tcp                # CVS client/server operations
 X  - Create an entry in /etc/inetd.conf  X  - Create an entry in /etc/inetd.conf
 X     cvspserver        stream  tcp nowait anoncvs /open/anoncvssh anoncvssh pserver  X     cvspserver        stream  tcp nowait anoncvs /open/anoncvssh anoncvssh pserver
   X  - Create a file /open/anoncvs/cvs/CVSROOT/passwd with the following entry
   X       anoncvs:AHDysQkJIubEc
   X    which would be a password of "anoncvs" (as per anoncvs.html)
   X  - Create a file /open/anoncvs/cvs/CVSROOT/readers with a single entry:
   X       anoncvs
   X    which tells cvs that user "anoncvs" is allowed readonly access.
   X  - Create a zero-length file /open/anoncvs/cvs/CVSROOT/writers since you don't
   X    want anyone to be able to write to the mirror.
   X       % cp /dev/null /open/anoncvs/cvs/CVSROOT/writers
 X  X
 XSee the example layout below for full details.  XSee the example layout below for full details.
 X  X
Line 188 
Line 197 
 X    cvs host=anoncvs1.ca.openbsd.org hostbase=/usr/OpenBSD base=/open/anoncvs delete  X    cvs host=anoncvs1.ca.openbsd.org hostbase=/usr/OpenBSD base=/open/anoncvs delete
 X  X
 XThe file /open/sup/cvs/refuse tells sup what files it should not get.  XThe file /open/sup/cvs/refuse tells sup what files it should not get.
 XIt should contain the single line:  XIt should contain the following lines:
 X  X
 X    cvs/CVSROOT/history  X    cvs/CVSROOT/history
   X    cvs/CVSROOT/readers
   X    cvs/CVSROOT/writers
   X    cvs/CVSROOT/passwd
 X  X
 Xif you ever fetch the file cvs/CVSROOT/history, delete it. it will  Xif you ever fetch the file cvs/CVSROOT/history, delete it. it will
 Xcause you problems.  Xcause you problems.
Line 572 
Line 584 
 X#endif /* ANONCVS_USER */  X#endif /* ANONCVS_USER */
 X  X
 X  X
 X       seteuid(0);  X       setuid(0);
 X       if (chroot(pw->pw_dir) == -1) {  X       if (chroot(pw->pw_dir) == -1) {
 X               perror("chroot");  X               perror("chroot");
 X               exit (1);  X               exit (1);
 X       }  X       }
 X       chdir("/");  X       chdir("/");
 X       setuid(getuid());  X       setuid(pw->pw_uid);
 X  X
 X       /*  X       /*
 X        * program now "safe"  X        * program now "safe"
Line 619 
Line 631 
 X                      them, ntohs(peer_sa.sin_port),  X                      them, ntohs(peer_sa.sin_port),
 X                      us, ntohs(my_sa.sin_port));  X                      us, ntohs(my_sa.sin_port));
 X#endif /* USE_SYSLOG */  X#endif /* USE_SYSLOG */
 X               execle("/usr/bin/cvs", "cvs", "pserver", NULL, env);  X               execle("/usr/bin/cvs", "cvs",
   X                   __CONCAT("--allow-root=",LOCALROOT), "pserver", NULL, env);
 X               perror("execle: cvs");  X               perror("execle: cvs");
 X               fprintf(stderr, "unable to exec CVS pserver!\n");  X               fprintf(stderr, "unable to exec CVS pserver!\n");
 X               exit(1);  X               exit(1);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11