続いて
Windows 向けファイルサーバ。
もうちょっとだ。
gin:~# gin:~# 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] 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. gin:~#
gin:~# cd /etc/samba/ gin:/etc/samba# mv smb.conf smb.conf.orig gin:/etc/samba# cp smb.conf.orig smb.conf gin:/etc/samba# ls -l smb.conf* -rw-r--r-- 1 root root 10577 Feb 3 09:51 smb.conf -rw-r--r-- 1 root root 10577 Feb 3 09:48 smb.conf.orig gin:/etc/samba# vi smb.conf : : gin:/etc/samba# diff -c smb.conf.orig smb.conf *** smb.conf.orig Sun Feb 3 09:48:36 2008 --- smb.conf Sun Feb 3 09:52:28 2008 *************** *** 303,305 **** --- 303,309 ---- ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom + [gin] + comment = HS-DHGL /mnt + path = /mnt + writable = Yes gin:/etc/samba#
gin:/etc/samba# smbpasswd -a yasunari New SMB password: Retype new SMB password: gin:/etc/samba#
gin:/etc/samba# /etc/init.d/samba restart Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. gin:/etc/samba#
|
← Tips 引っ越し |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 新型 HS-DHGL にハックキット(8)Windows 向けプリンタサーバ |