1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 # An InstallGuide for the AFS modified Unix commands
12 &Copy("etc/inetd", "/usr/sbin/inetd.afs");
13 &Copy("etc/ftpd", "/usr/sbin/ftpd.afs");
14 &Copy("etc/rlogind", "/usr/sbin/rlogind.afs");
17 &CreateDir("/usr/vice/bin");
19 &Copy("bin/rcp", "/usr/vice/bin");
20 &Chown (0,2, "/usr/vice/bin/rcp");
21 &Chmod (04755, "/usr/vice/bin/rcp");
23 &Copy("bin/rsh", "/usr/vice/bin");
24 &Chown (0,2, "/usr/vice/bin/rsh");
25 &Chmod (04755, "/usr/vice/bin/rsh");
27 # Create the inetd.conf.afs file
28 $InetdConfAfs = open(INETD, "> /etc/inetd.conf.afs");
29 &ErrorMsg("Can't open file", "/etc/inetd.conf.afs") if (!$InetdConfAfs);
30 print INETD <<"EOINETD";
31 ftp stream tcp nowait root /usr/sbin/ftpd.afs ftpd.afs
32 shell stream tcp nowait root /usr/sbin/rshd rshd
33 login stream tcp nowait root /usr/sbin/rlogind.afs rlogind.afs
34 ta-rauth stream tcp nowait root internal ta-rauth
37 # comment out the lines in inetd.conf
38 $InetdConf = "/etc/inetd.conf";
39 &CopyStat($InetdConf, $InetdConfAfs);
40 &Patch::Verbose if ($InstallVerbose);
41 &Patch::FileOpen($InetdConf);
43 $Search1 = "^(ftp\\s+.+)";
46 $Search2 = "^(shell\\s+.+)";
49 $Search3 = "^(login\\s+.+)";
52 if (!&Patch::Patch($InetdConf, [[1, "Substitution", $Search1, $Replace1],
53 [1, "Substitution", $Search2, $Replace2],
54 [1, "Substitution", $Search3, $Replace3]])) {
55 &ErrorMsg("Did not succeed with patch", $InetdConf);
58 # Modify the /etc/services file
59 &ReadInstallGuide("$InstallGuideDir/GENERIC/unix");