tar zxvf samba2_0_7jp_12.tar.gz ./configures checking for catalogs to be installed... checking configure summary configure OK updating cache ./config.cache creating ./config.status creating include/stamp-h creating Makefile creating intl/Makefile creating po/Makefile.in creating include/config.h。 |
[root@redhat6 /root]# /etc/rc.d/init.d/smb restart Restarting SMB services: Shutting down SMB services: [ OK ] Starting SMB services: execvp: No such file or directory [FAILED] done. [root@redhat6 /tmp]# rpm -ivh samba-2_0_5aJP2-7_i386.rpm file /usr/bin/smbmnt from install of samba-2.0.5aJP2-7 conflicts with file from package samba-client-2.0.5a-12 file /usr/bin/smbmount from install of samba-2.0.5aJP2-7 conflicts with file fro m package samba-client-2.0.5a-12 file /usr/bin/smbumount from install of samba-2.0.5aJP2-7 conflicts with file fr om package samba-client-2.0.5a-12 |
[root@redhat6 RPMS]# rpm -ivh samba-2.0.5a-12.i386.rpm warning: /etc/pam.d/samba saved as /etc/pam.d/samba.rpmorig warning: /etc/rc.d/init.d/smb saved as /etc/rc.d/init.d/smb.rpmorig samba ################################################## |
[2000/08/01 15:55:44, 1] smbd/server.c:main(628) smbd version 2.0.5a started. Copyright Andrew Tridgell 1992-1998 [2000/08/01 15:55:44, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available. [2000/08/01 15:55:44, 0] lib/util_sock.c:open_socket_in(886) bind failed on port 139 socket_addr=0.0.0.0 (Address already in use) |
NETWORKING=yes FORWARD_IPV4=false HOSTNAME=redhat6 DOMAINNAME=redhat6 GATEWAY=172.21.1.3 |
[root@redhat6 samba]# /etc/rc.d/init.d/smb start Starting SMB services: [ OK ] Starting NMB services: [ OK ] |
[root@redhat6 /etc]# mksmbpasswd.sh < /etc/passwd > /etc/smbpasswd [root@redhat6 /etc]# ls /etc/smbpasswd /etc/smbpasswd [root@redhat6 /etc]# chmod 600 /etc/smbpasswd [root@redhat6 /etc]# smbpasswd fujii New SMB password: Retype new SMB password: Password changed for user fujii. [root@redhat6 /etc]# smbpasswd -e fujii User fujii enabled. |
[root@redhat6 htdocs]# smbclient -U fujii -L localhost Added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 Password: Domain=[DM_SALES2] OS=[Unix] Server=[Samba 2.0.5a] Sharename Type Comment --------- ---- ------- homes Disk Home Directories tmp Disk Temporary file space IPC$ IPC IPC Service (Redhat6 2.0.5a on redhat6) fujii Disk Home Directories Server Comment --------- ------- REDHAT6 Redhat6 2.0.5a on redhat6 Workgroup Master --------- ------- DM_SALES2 |
導入環境は、RedHat系です [root@redhat6 ftp]#useradd ftpguest /etc/ftpaccessの中身 guestgroup guest追加 /etc/shellsの中身 /bin/true追加 /etc/groupの中身 guest::505:ftpguest /etc/passwdの中身 ftpguest:x:510:510::/home/ftp/pub/ftpguest:/bin/true /home/ftpの中身 [root@redhat6 ftp]# ls -la total 24 drwxrwxr-x 6 root root 4096 Aug 1 21:31 . drwxr-xr-x 7 root root 4096 Aug 1 22:00 .. drwxr-x--x 2 root root 4096 Aug 2 11:12 bin drwxr-x--x 2 root root 4096 Aug 1 21:31 etc drwxrwxrwx 2 root ftp 4096 Aug 2 11:06 pub drwxr-x--x 2 root root 4096 Aug 2 11:07 lib /home/ftpの中身 [root@redhat6 pub]# ls -la total 24 drwxrwxr-x 6 root root 4096 Aug 1 21:31 . drwxr-xr-x 7 root root 4096 Aug 1 22:00 .. drwxr-x--x 2 root root 4096 Aug 2 11:12 ftpguest cp -r etc pub/ftpguest cp -r lib pub/ftpguest cp -r bin pub/ftpguest これらのファイルが見せるフォルダ−に無いと、ftp後にコマンドが打てませんし、 ホルダ−内に入っている物が表示出来ません。 |
[postgres@redhat6 jdbc]$ java example.basic jdbc:postgresql:email postgres postgres PostgreSQL basic test v6.3 rev 1 Connecting to Database URL = jdbc:postgresql:email Connected...Now creating a statement Running tests: Updated 3 rows performing a query a=1 b=8 a=2 b=8 a=3 b=8 a=4 b=2 a=4 b=3 a=4 b=4 performing another query a=1 b=8 a=2 b=8 a=3 b=8 a=4 b=2 a=4 b=3 a=4 b=4 Now closing the connection [postgres@redhat6 jdbc]$ |
[tomcat@redhat6 bin]$ |
[root@redhat6 bin]# ./tomcat.sh start Guessing TOMCAT_HOME from tomcat.sh to ./..Setting TOMCAT_HOME to ./..Using classpath: .:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./. ./lib/test:./../lib/webserver.jar:./../lib/xml.jar:/usr/local/jdk1.2.2/lib/tools .jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/local/pgsql/lib/postgresql.jar [root@redhat6 bin]# Starting tomcat. Check logs/tomcat.log for error messages Context log: path="/examples" Adding context path="/examples" docBase="webapps/examples" YoteiApp : yotei.JDBCNoConverter load completed. YoteiApp : yotei.ParamAutoConverter load completed. -------------servlet.log -------------------------- Context log path="/yotei" :invoker: init Context log path="/yotei" :Login: init Context log path="/yotei" :MonthlySch: init Context log path="/yotei" :WeeklySchAll: init Context log path="/yotei" :AddSch: init -----------------jasper.log --------------------- |
[root@redhat6 pptpd-1.0.0]# ./configure =============================================================================== Configuration chosen: PPPd IP allocation: No. PPPd: Standard. LIBWRAP security: No. Mode: IP tunneling server (PAC). =============================================================================== updating cache ./config.cache creating ./config.status creating Makefile creating config.h [root@redhat6 pptpd-1.0.0]# make gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c pptpd.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c configfile.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c pptpmanager.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c compat.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c getopt.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c getopt1.c gcc -O2 -fno-builtin -Wall -ansi -DSBINDIR='"/usr/local/sbin"' -o pptpd pptpd .o configfile.o pptpmanager.o compat.o getopt.o getopt1.o gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c pptpctrl.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c ctrlpacket.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c inststr.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c pptpgre.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -O2 -fno-builtin -Wall -ansi -DSBINDIR='" /usr/local/sbin"' -c ppphdlc.c gcc -O2 -fno-builtin -Wall -ansi -DSBINDIR='"/usr/local/sbin"' -o pptpctrl pp tpctrl.o ctrlpacket.o inststr.o compat.o pptpgre.o ppphdlc.o -lutil [root@redhat6 pptpd-1.0.0]# make install make[1]: Entering directory `/usr/src/pptpd-1.0.0' /bin/sh ./mkinstalldirs /usr/local/sbin /usr/bin/install -c pptpd /usr/local/sbin/pptpd /usr/bin/install -c pptpctrl /usr/local/sbin/pptpctrl make install-man5 install-man8 make[2]: Entering directory `/usr/src/pptpd-1.0.0' /bin/sh ./mkinstalldirs /usr/local/man/man5 /usr/bin/install -c -m 644 ./pptpd.conf.5 /usr/local/man/man5/pptpd.conf.5 /bin/sh ./mkinstalldirs /usr/local/man/man8 /usr/bin/install -c -m 644 ./pptpctrl.8 /usr/local/man/man8/pptpctrl.8 /usr/bin/install -c -m 644 ./pptpd.8 /usr/local/man/man8/pptpd.8 make[2]: Leaving directory `/usr/src/pptpd-1.0.0' make[1]: Leaving directory `/usr/src/pptpd-1.0.0' [root@redhat6 rc4]# cp rc4.h /usr/src/ppp-2.3.10/linux [root@redhat6 rc4]# cp rc4_enc.c /usr/src/ppp-2.3.10/linux [root@redhat6 ppp-2.3.10]# zcat ../ppp-2_3_10-openssl-norc4-mppe_patch.gz | patch -p1 patching file `README.MPPE' patching file `include/linux/ppp-comp.h' patching file `include/net/ppp-comp.h' patching file `linux/kinstall.sh' patching file `linux/mppe.h' patching file `linux/ppp.c' patching file `linux/ppp_lzscomp.c' patching file `linux/ppp_lzscomp.h' patching file `linux/ppp_mppe.c' patching file `pppd/Makefile.linux' patching file `pppd/auth.c' patching file `pppd/cbcp.c' patching file `pppd/ccp.c' patching file `pppd/ccp.h' patching file `pppd/chap.c' patching file `pppd/chap.h' patching file `pppd/chap_ms.c' patching file `pppd/chap_ms.h' patching file `pppd/extra_crypto.c' patching file `pppd/extra_crypto.h' patching file `pppd/ipcp.c' patching file `pppd/lcp.c' patching file `pppd/lcp.h' patching file `pppd/mppe.c' patching file `pppd/mppe.h' patching file `pppd/pppd.8' patching file `pppd/pppd.h' patching file `pppd/sha.h' patching file `pppd/sha1dgst.c' patching file `pppd/sha_locl.h' [root@redhat6 ppp-2.3.10]# ./configure Creating links to Makefiles. Makefile -> linux/Makefile.top pppd/Makefile -> Makefile.linux pppstats/Makefile -> Makefile.linux chat/Makefile -> Makefile.linux pppdump/Makefile -> Makefile.linux [root@redhat6 ppp-2.3.10]# make make[1]: Entering directory `/usr/src/ppp-2.3.10/pppdump' cc -O -I../include/net -c pppdump.c -o pppdump.o cc -O -I../include/net -c bsd-comp.c -o bsd-comp.o cc -O -I../include/net -c deflate.c -o deflate.o cc -O -I../include/net -c zlib.c -o zlib.o cc -o pppdump pppdump.o bsd-comp.o deflate.o zlib.o make[1]: Leaving directory `/usr/src/ppp-2.3.10/pppdump' [root@redhat6 ppp-2.3.10]# make install cd chat; make BINDIR=/usr/sbin MANDIR=/usr/man install make[1]: Entering directory `/usr/src/ppp-2.3.10/chat' mkdir -p /usr/sbin install -s -c chat /usr/sbin install -c -m 644 chat.8 /usr/man/man8 make[1]: Leaving directory `/usr/src/ppp-2.3.10/chat' cd pppd; make BINDIR=/usr/sbin MANDIR=/usr/man install make[1]: Entering directory `/usr/src/ppp-2.3.10/pppd' mkdir -p /usr/sbin /usr/man install -o root -s -c -m 4550 pppd /usr/sbin/pppd if ! chgrp pppusers /usr/sbin/pppd 2>/dev/null; then \ chmod o+rx /usr/sbin/pppd; fi install -o root -c -m 444 pppd.8 /usr/man/man8 make[1]: Leaving directory `/usr/src/ppp-2.3.10/pppd' cd pppstats; make BINDIR=/usr/sbin MANDIR=/usr/man install make[1]: Entering directory `/usr/src/ppp-2.3.10/pppstats' install -o root -g daemon -s -c pppstats /usr/sbin/pppstats install -o root -g daemon -c -m 444 pppstats.8 /usr/man/man8/pppstats.8 make[1]: Leaving directory `/usr/src/ppp-2.3.10/pppstats' cd pppdump; make BINDIR=/usr/sbin MANDIR=/usr/man install make[1]: Entering directory `/usr/src/ppp-2.3.10/pppdump' mkdir -p /usr/sbin /usr/man/man8 install -s -c pppdump /usr/sbin install -c -m 444 pppdump.8 /usr/man/man8 make[1]: Leaving directory `/usr/src/ppp-2.3.10/pppdump' [root@redhat6 ppp-2.3.10]# |
[root@redhat6 /etc]# /usr/sbin/pppd: The remote system is required to authenticate itself but I /usr/sbin/pppd: couldn't find any suitable secret (password) for it to use to do so. |