続いて Windows ファイルサーバ。
以下、
LS-GL/HS-DHGL ハックキットの、
Windows 向けファイルサーバの
手順
ude:~# apt-get install samba Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: After unpacking 14.3MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://ftp2.jp.debian.org etch/updates/main libkrb53 1.4.4-7etch2 [390kB] Get:2 http://ftp2.jp.debian.org etch/main libcupsys2 1.2.7-4 [154kB] Get:3 http://ftp2.jp.debian.org proposed-updates/main samba-common 3.0.24-6etch4 [2380kB] Fetched 6209kB in 6s (904kB/s)WORKGROUP として YAMASITA を指定した他はデフォルトのまま
Selecting previously deselected package libkrb53. (Reading database ... 10338 files and directories currently installed.) Unpacking libkrb53 (from .../libkrb53_1.4.4-7etch2_arm.deb) ... Selecting previously deselected package libcupsys2. Unpacking libcupsys2 (from .../libcupsys2_1.2.7-4_arm.deb) ... Selecting previously deselected package samba-common. Unpacking samba-common (from .../samba-common_3.0.24-6etch4_arm.deb) ... Selecting previously deselected package samba. Unpacking samba (from .../samba_3.0.24-6etch4_arm.deb) ... Setting up libkrb53 (1.4.4-7etch2) ... Setting up libcupsys2 (1.2.7-4) ... Setting up samba-common (3.0.24-6etch4) ... Setting up samba (3.0.24-6etch4) ... : : Starting Samba daemons: nmbd smbd. ude:~#
ude:~# cd /etc/samba/ ude:/etc/samba# mv smb.conf smb.conf.orig && cp smb.conf.orig smb.conf && ls -l smb.conf* -rw-r--r-- 1 root root 10577 Aug 25 18:51 smb.conf -rw-r--r-- 1 root root 10577 Aug 25 18:47 smb.conf.orig ude:/etc/samba# vi smb.conf : : ude:/etc/samba# diff -c smb.conf.orig smb.conf *** smb.conf.orig Sat Aug 25 18:47:04 2007 --- smb.conf Sat Aug 25 18:52:08 2007 *************** *** 303,305 **** --- 303,310 ---- ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom + [ude] + comment = LS-GL share + path = /mnt + writable = Yes + ude:/etc/samba#
ude:/etc/samba# ude:/etc/samba# /etc/init.d/samba reload Reloading /etc/samba/smb.conf: smbd only. ude:/etc/samba#
ude:/etc/samba# smbpasswd -a yasunari New SMB password: Retype new SMB password: ude:/etc/samba#
|
← LS-LGL/Mシリーズ, HS-DHGL/Mシリーズ発表 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ tail の + オプション |