colinux環境を Fedora Core release 4 Kernel 2.6.11-co-0.6.4 on an i686
で再作成したので、sambaをインストールします。
以前は、samba2を利用していましたが、今回は、samba3にしてみます。
samba3の入手
http://us3.samba.org/samba/ftp/stable/samba-3.0.28a.tar.gz
からdownload後、WinSCP ver.3.7.6 でcolinuxへscpするか、
次のようにcolinux側でwgetします。
$ wget http://us3.samba.org/samba/ftp/stable/samba-3.0.28a.tar.gz
doc
samba-3.0.28a/README によれば、install docは、次のpathにあります。
NOTE: Installation instructions may be found in docs/htmldocs/Samba3-HOWTO/install.html
※同様のdocは、次のurlにもありました。
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html
install
$ tar -zxvf samba-3.0.28a.tar.gz $ cd samba-3.0.28a/source $ ./configure $ make # make install
useradd
samba3からは pdbedit コマンドを利用するらしい...
[root@colinux init.d]# pdbedit -a -u endo new password: retype new password: Unix username: endo NT username: Account Flags: [U ] User SID: S-1-5-21-1443710838-1570579301-3008760607-2000 Primary Group SID: S-1-5-21-1443710838-1570579301-3008760607-2001 Full Name: Home Directory: \\colinux\endo HomeDir Drive: Logon Script: Profile Path: \\colinux\endo\profile Domain: COLINUX Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: Sat, 14 Dec 1901 05:45:51 GMT Kickoff time: Sat, 14 Dec 1901 05:45:51 GMT Password last set: Thu, 01 May 2008 17:25:42 GMT Password can change: Thu, 01 May 2008 17:25:42 GMT Password must change: Sat, 14 Dec 1901 05:45:51 GMT Last bad password : 0 Bad password count : 0 Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF