📄 00000039.htm
字号:
/etc/default/init (Solaris 2.5 for example) for setting the <BR> correct TZ variable. This file has to be in chrooted <BR> environments too then. <BR> <BR> Noted by Francois Belanger (<A HREF="mailto:francois@goltier.com).">francois@goltier.com).</A> <BR> <BR> Digital Unix needs /etc/zoneinfo/localtime. <BR> <BR> 9. Digital Unix doesn't log commands after an anonymous user <BR> logs in <BR> <BR> The syslog system calls in Digital Unix are a bit different. <BR> The following text describes how to fix this. <BR> <BR>The standard Digital ftpd does log the commands after the chroot and Benoit <BR>Maillard (<A HREF="mailto:maillard@fgt.dec.com)">maillard@fgt.dec.com)</A> told me that it was because they don't use <BR>the standard system calls. <BR> <BR>While looking at the distribution files, I've found a syslog.c file in support <BR>directory and I've modified the Makefile.osf in support/makefiles to include <BR>it in the library. <BR>There were 2 compilation errors on this file, in fact one warning and one error <BR>. <BR> <BR>The warning is on <BR> <BR>if ((p = malloc(strlen(ident) + 1)) == NULL) <BR> <BR>and to suppress it, modify in <BR> <BR>if ((p = (char *)malloc(strlen(ident) + 1)) == NULL) <BR> <BR>The error was on the redefinition of openlog (or closelog). It comes from the <BR>fact that these calls are redefined in <syslog.h> <BR>extern int openlog __((const char *, int, int)); <BR>extern int syslog __((int, const char *, ...)); <BR>extern void closelog __((void)); <BR>extern int setlogmask __((int)); <BR> <BR>So I've copied /usr/include/syslog.h in the support directory and I've modified <BR>it in suppressing these lines. Then I've modified syslog.c in replacing <BR> <BR>#include <syslog.h> by #include "syslog.h" <BR> <BR>So now all is working fine and even for anonymous users the commands are logged <BR> <BR>correctly as for real users in the daemon.log file. <BR> Written on the mailing list by Daniel Clar <BR> (<A HREF="mailto:Daniel.Clar@supelec.fr).">Daniel.Clar@supelec.fr).</A> <BR> <BR> 10. install fails with 'install: ..' <BR> <BR> The makefile is setup for the bsd version of the install <BR> program. Some OS'es (including Solaris) use the svr4 version. <BR> In that case set in the makefile : <BR> INSTALL = /usr/ucb/install <BR> <BR> 11. Digital Unix (The Unix Formerly Known As OSF/1) and Enhanced <BR> C2 security, <BR> <BR> The needed changes seem to depend on which version digital <BR> unix. For digital unix 4.0 the LIBES line has just to be the <BR> default LIBES = -lsupport and the change in crypt() is not <BR> needed. <BR> Make these changes to ./src/config/config.osf : <BR> <BR>#define SecureWare <BR>#include <sys/secdefines.h> <BR>#include <sys/types.h> <BR>#include <sys/security.h> <BR>#include <sys/audit.h> <BR>#include <prot.h> <BR> and add the following to ./src/makefiles/Makefile.osf <BR> <BR>LIBES = -lsupport -lsecurity -laud <BR> And change all occurences of crypt() to bicrypt. <BR> <BR> To run, you'll need to copy the entire contents of /etc/sia <BR> to ~ftp/etc/sia. Easiest way to do this is : <BR> <BR># cd /etc <BR># tar -cvf - sia | (cd ~ftp/etc;tar -xpf -) <BR> Also, to make passwords longer then 8 characters work, another <BR> change is needed. Change the line: <BR> <BR> <BR>crypt_alg = AUTH_CRYPT_OLDCRYPT; <BR> to <BR> <BR>crypt_alg = AUTH_CRYPT_BIGCRYPT; <BR> Parts of this provided by Andrew C. Saylor <BR> (<A HREF="mailto:asaylor@comsource.net).">asaylor@comsource.net).</A> <BR> <BR> 12. It doesn't compile at all on Digital Unix, errors about <BR> struct timeval <BR> <BR> Add to ./src/ftpd.c <BR> <BR>#define SPT_SCO 6 /* write kernel u. area */ <BR> <BR>/* FTP server. */ <BR>#include "config.h" <BR>#include <cma.h> <-- add this <BR> <BR>#include
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -