# rpm -qa | grep samba
$ tar xvjf samba-2.2.8a-ja-1.0.tar.bz2 $ cd samba-2.2.8a-ja-1.0/source $ ./configure $ make # make installインストール先は、
/usr/local/samba/以下に配置される。
# grep swat /etc/services
service swat { port = 901 socket_type = stream wait = no only_from = localhost user = root server = /usr/local/samba/bin/swat log_on_failure += USERID disable = no }
$ bzip2 -cd samba-2.2.2-ja.1.1.tar.bz2 | tar xf - $ cd samba-2.2.2-ja-1.1 $ more READMEInstallation instructions may be found in docs/htmldocs/UNIX_INSTALL.html or docs/ja/textdocs/UNIX_INSTALL.txt
$ cd source $ ./configure $ vi Makefile ... ... ... $ make $ su # make installsmb.confの作成 見本がexamples/にあるので参考にする。
[global] workgroup = MYGROUP [home] guest ok = no read only = no
# cd ../examples # mkdir /usr/local/samba/etc # cp smb.conf.default /usr/local/samba/etc/smb.conf # pushd /usr/local/samba/etc # vi smb.conf
ntbios-ssn 139/tcp netbios-ns 137/udp/etc/inetd.conf
netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd netbios-ns dgram udp wait root /usr/lcoal/samba/bin/nmbd nmbd
# smbpasswd -a samba-user
[global] security = user coding system = euc client code page = 932 workgroup = hogehoge encrypt passwords = yes create mask = 0777 directory mask = 0777 [public] path = /home/share writeable = yes guest ok = no