$ tar xvfz samba-2.0.5a.tar.gz $ cd samba-2.0.5a/source $ ./configure (snip) configure: warning: running as non-root will disable some tests (snip) |
$ make $ su # make install # exit |
#!/bin/sh /usr/local/samba/bin/smbd -D /usr/local/samba/bin/nmbd -D |
if [ -x /etc/rc.d/rc.samba ]; then echo -n "Starting samba " /etc/rc.d/rc.samba echo "." fi |
$ tar xvfz samba-2.0.6.tar.gz $ cd samba-2.0.6/source $ ./configure --with-i18n-swat --with-smbmount $ make (snip) Compiling smbd/password.c smbd/password.c: In function `setup_groups': smbd/password.c:168: warning: comparison is always 0 due to limited range of dat a type smbd/password.c:168: warning: comparison is always 0 due to limited range of dat a type Compiling smbd/conn.c (snip) $ su # make install # exit |
$ tar xvfz samba-2.0.7-ja-2.2.tar.gz $ cd samba-2.0.7-ja-2.2/source $ ./configure --with-i18n-swat --with-smbmount --with-ssl $ make (snip) Compiling lib/util_unistr.c Compiling lib/util_file.c Compiling lib/util.c lib/util.c:57: ssl.h: そのようなファイルやディレクトリはありません make: *** [lib/util.o] Error 1 |
$ ./configure --with-i18n-swat --with-smbmount --with-ssl --with-sslinc=/usr/local/ssl/include/openssl $ make (snip) make[1]: Leaving directory `/usr/local/src/samba-2.0.7-ja-2.2/source/intl' Compiling lib/util.c lib/util.c:57: ssl.h: そのようなファイルやディレクトリはありません make: *** [lib/util.o] Error 1 |
-I/usr/local/ssl/include/openssl/include -L/usr/local/ssl/include/openssl/lib |
$ bzip2 -dc samba-2.0.9-ja-l.0.tar.bz2 | tar xvf - $ cd samba-2.0.9-ja-1.0/source $ ./configure --with-i18n-swat --with-smbmount $ make (snip) Compiling utils/make_printerdef.c Linking bin/make_printerdef lib/util.o: In function `smbd_mktemp': lib/util.o(.text+0x4a88): the use of `mktemp' is dangerous, better use `mkstemp' |
$ su # make install # exit |
# cd samba-2.0.5a/examples # cp smb.conf.default /usr/local/samba/lib/smb.conf |
coding system = euc client code page = 932 |
# mkdir /usr/local/samba/private # chmod 600 /usr/local/samba/private # touch /usr/local/samba/private/smbpasswd # chmod 600 /usr/local/samba/private/smbpasswd # smbpasswd -a <UNIX 上に存在するユーザ名> New SMB password: xxxxxxx Retype new SMB password: xxxxxxx Added user <UNIX 上に存在するユーザ名> |
swat 901/tcp |
swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat |