標準ファームへの依存を減らし、 追従の必要を減らす形でハックキットを作り直したので、 インストールしてテストする。
続いて
Windows 向けファイルサーバ。
もうちょっとだ。
nino:~# apt-get install samba Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libcupsys2 libkrb53 samba-common Suggested packages: cupsys-common krb5-doc krb5-user Recommended packages: smbldap-tools The following NEW packages will be installed: libcupsys2 libkrb53 samba samba-common 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 6207kB of archives. After unpacking 14.4MB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp2.jp.debian.org etch/main libkrb53 1.4.4-7etch4 [390kB] Get:2 http://ftp2.jp.debian.org proposed-updates/main libcupsys2 1.2.7-4etch2 [154kB] Get:3 http://ftp2.jp.debian.org etch/main samba-common 3.0.24-6etch9 [2379kB] Get:4 http://ftp2.jp.debian.org etch/main samba 3.0.24-6etch9 [3283kB] Fetched 6207kB in 9s (633kB/s) Package configurationWorkgroup/Domain Name には YAMASITA を、
Selecting previously deselected package libkrb53. (Reading database ... 11776 files and directories currently installed.) Unpacking libkrb53 (from .../libkrb53_1.4.4-7etch4_arm.deb) ... Selecting previously deselected package libcupsys2. Unpacking libcupsys2 (from .../libcupsys2_1.2.7-4etch2_arm.deb) ... Selecting previously deselected package samba-common. Unpacking samba-common (from .../samba-common_3.0.24-6etch9_arm.deb) ... Selecting previously deselected package samba. Unpacking samba (from .../samba_3.0.24-6etch9_arm.deb) ... Setting up libkrb53 (1.4.4-7etch4) ... Setting up libcupsys2 (1.2.7-4etch2) ... Setting up samba-common (3.0.24-6etch9) ... Setting up samba (3.0.24-6etch9) ... Generating /etc/default/samba... tdbsam_open: Converting version 0 database to version 3. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0 Importing accout for root...ok Importing accout for daemon...ok Importing accout for bin...ok Importing accout for sys...ok Importing accout for sync...ok Importing accout for games...ok Importing accout for man...ok Importing accout for lp...ok Importing accout for mail...ok Importing accout for news...ok Importing accout for uucp...ok Importing accout for proxy...ok Importing accout for www-data...ok Importing accout for backup...ok Importing accout for list...ok Importing accout for irc...ok Importing accout for gnats...ok Importing accout for nobody...ok Importing accout for Debian-exim...ok Importing accout for telnetd...ok Importing accout for yasunari...ok Importing accout for ntp...ok Starting Samba daemons: nmbd smbd.
nino:~# cd /etc/samba/ nino:/etc/samba# mv smb.conf smb.conf.orig nino:/etc/samba# cp smb.conf.orig smb.conf nino:/etc/samba# ls -l total 28 -rw-r--r-- 1 root root 8 Dec 11 02:33 gdbcommands -rw-r--r-- 1 root root 10577 Jan 22 19:58 smb.conf -rw-r--r-- 1 root root 10577 Jan 22 19:55 smb.conf.orig nino:/etc/samba# vi smb.conf : : nino:/etc/samba# diff -c smb.conf.orig smb.conf *** smb.conf.orig Tue Jan 22 19:55:48 2008 --- smb.conf Tue Jan 22 20:00:10 2008 *************** *** 303,305 **** --- 303,309 ---- ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom + [nino] + comment = LS-GL /mnt + path = /mnt + writable = Yes nino:/etc/samba#
nino:/etc/samba# smbpasswd -a yasunari New SMB password: Retype new SMB password: nino:/etc/samba#上書きしただけ?
書き込むためには、書き込み許可が必要
nino:/mnt# mkdir test nino:/mnt# chown yasunari test nino:/mnt# chmod 755 test nino:/mnt#
|
← 新型 LS-GL に ハックキット 2.1(5)時刻同期 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 新型 LS-GL に ハックキット 2.1(7)開発環境のインストール |