続いて
録画したファイルの共有。
hackkit:~# ls -ld /mnt/buffalo/mnt/disk1/share/videos drwxr-xr-x 2 root root 6 Feb 9 16:27 /mnt/buffalo/mnt/disk1/share/videos hackkit:~# chgrp yamasita /mnt/buffalo/mnt/disk1/share/videos hackkit:~# chmod 775 !$ chmod 755 /mnt/buffalo/mnt/disk1/share/videos hackkit:~# !ls ls -ld /mnt/buffalo/mnt/disk1/share/videos drwxrwxr-x 2 root yamasita 6 Feb 9 16:27 /mnt/buffalo/mnt/disk1/share/videos hackkit:~#
hackkit:~# cd /etc/samba/
hackkit:/etc/samba# mv smb.conf{,.orig}
hackkit:/etc/samba# cp smb.conf{.orig,}
hackkit:/etc/samba# ls -l smb.conf*
-rw-r--r-- 1 root root 10661 Feb 17 12:00 smb.conf
-rw-r--r-- 1 root root 10661 Feb 3 20:26 smb.conf.orig
hackkit:/etc/samba# vi smb.conf
:
:
hackkit:/etc/samba# diff -c smb.conf.orig smb.conf
*** smb.conf.orig Sun Feb 3 20:26:58 2008
--- smb.conf Sun Feb 17 12:01:11 2008
***************
*** 29,34 ****
--- 29,37 ----
# server string is the equivalent of the NT Description field
server string = %h server
+ # cording system
+ dos charset = CP932
+
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
; wins support = no
hackkit:/etc/samba#
hackkit:/etc/samba# vi smb.conf
:
:
hackkit:/etc/samba# !diff
diff -c smb.conf.orig smb.conf
*** smb.conf.orig Sun Feb 3 20:26:58 2008
--- smb.conf Sun Feb 17 12:02:42 2008
***************
*** 29,34 ****
--- 29,37 ----
# server string is the equivalent of the NT Description field
server string = %h server
+ # cording system
+ dos charset = CP932
+
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
; wins support = no
***************
*** 308,310 ****
--- 311,317 ----
comment = HS-DHGL /mnt
path = /mnt
writable = Yes
+ [video]
+ comment = PCast Video
+ path = /mnt/buffalo/mnt/disk1/share/videos
+ writable = Yes
hackkit:/etc/samba#
hackkit:~# /etc/init.d/samba reload Reloading /etc/samba/smb.conf: smbd only. hackkit:~#
と。
ディレクトリのパーミッションを見ていくと、、、
hackkit:~# ls -ld /mnt/buffalo/mnt/disk1/share/videos drwxrwxr-x 2 root yamasita 6 Feb 9 16:27 /mnt/buffalo/mnt/disk1/share/videos hackkit:~# ls -ld /mnt/buffalo/mnt/disk1/share drwxrwxrwx 4 root root 34 Feb 9 16:27 /mnt/buffalo/mnt/disk1/share hackkit:~# ls -ld /mnt/buffalo/mnt/disk1 drwx------ 5 root root 51 Feb 9 16:30 /mnt/buffalo/mnt/disk1 hackkit:~#/mnt/buffalo/mnt/disk1 が root にしか許可されていない。
hackkit:~# ls -ld /mnt/buffalo/mnt drwxrwxrwx 9 root root 98 Jan 8 17:15 /mnt/buffalo/mnt hackkit:~# ls -ld /mnt/buffalo drwxr-xr-x 17 root root 4096 Feb 9 23:36 /mnt/buffalo hackkit:~# ls -ld /mnt drwxr-xr-x 3 root root 20 Feb 9 09:29 /mnt hackkit:~#問題なさそう。
/mnt/buffalo/mnt/disk1 のモードを変える。
hackkit:~# chmod 755 /mnt/buffalo/mnt/disk1 hackkit:~# ls -ld !$ ls -ld /mnt/buffalo/mnt/disk1 drwxr-xr-x 5 root root 51 Feb 9 16:30 /mnt/buffalo/mnt/disk1 hackkit:~#もう一度エクスプローラから \\hackkit\videos をアクセスし、 フォルダが見えることを確認した。
|
|
← POWER OFF |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ root のパスワードをつぶす / clear the root's password |