[root@gawa root]# rpm -qa | grep samba samba-common-3.0.10-0vl2 samba-3.0.10-0vl2 [root@gawa root]#
[root@gawa root]# mkdir /mnt/share /mnt/Video [root@gawa root]# chgrp yamasita /mnt/share /mnt/Video [root@gawa root]# chmod g+w /mnt/share /mnt/Video
[root@gawa root]# cd /etc/samba/ [root@gawa samba]# mv smb.conf smb.conf.orig [root@gawa samba]# cp smb.conf.orig smb.conf [root@gawa samba]# vi smb.conf : : [root@gawa samba]# diff -c smb.conf.orig smb.conf *** smb.conf.orig 2005-03-18 00:49:21.000000000 +0900 --- smb.conf 2005-12-25 16:48:10.000000000 +0900 *************** *** 1,10 **** [global] ! unix charset = eucJP-ms dos charset = cp932 display charset = eucJP-ms ! ; workgroup = MYGROUP server string = Samba %v on %h ; hosts allow = 192.168.1. 192.168.2. 127. --- 1,10 ---- [global] ! unix charset = cp932 dos charset = cp932 display charset = eucJP-ms ! workgroup = yamasita server string = Samba %v on %h ; hosts allow = 192.168.1. 192.168.2. 127. *************** *** 19,25 **** log file = /var/log/samba/%m.log max log size = 50 ! security = user ; password server =; password level = 8 ; username level = 8 --- 19,25 ---- log file = /var/log/samba/%m.log max log size = 50 ! security = share ; password server = ; password level = 8 ; username level = 8 *************** *** 71,82 **** writable = No printable = Yes ! [public] ! comment = Public Space for Everyone ! path = /var/samba/public ! public = Yes ! read only = Yes ! # allow people in the "staff" group to write ; write list = @staff ;[netlogon] --- 71,82 ---- writable = No printable = Yes ! ;[public] ! ; comment = Public Space for Everyone ! ; path = /var/samba/public ! ; public = Yes ! ; read only = Yes ! ; # allow people in the "staff" group to write ; write list = @staff ;[netlogon] *************** *** 91,104 **** ; browseable = No ; guest ok = Yes ! [sambadoc] ! comment = Samba Documents ! path = /var/samba/docs ! guest ok = Yes ! read only = Yes ;[CD-ROM] ; comment = CD-ROM ; path = /misc/cd ; guest ok = Yes ; read only = Yes --- 91,120 ---- ; browseable = No ; guest ok = Yes ! ;[sambadoc] ! ; comment = Samba Documents ! ; path = /var/samba/docs ! ; guest ok = Yes ! ; read only = Yes ;[CD-ROM] ; comment = CD-ROM ; path = /misc/cd ; guest ok = Yes ; read only = Yes + + [video] + comment = link station + path = /mnt/Video + read only = No + + [share] + comment = link station + path = /mnt/share + read only = No + + [NewVideo] + comment = New Video + path = /mnt/share + guest only = Yes + guest ok = Yes [root@gawa samba]#
[root@gawa samba]# smbpasswd -a yasunari New SMB password: Retype new SMB password: startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. File successfully created. Added user yasunari. [root@gawa samba]#
[root@gawa samba]# /etc/rc.d/init.d/smb start SMBサービスを起動中: [ OK ] NMBサービスを起動中: [ OK ] [root@gawa samba]#
[root@gawa share]# ls | nkf -S -e 【は】激走!GT_1218.mpg* [root@gawa share]#OK
[root@gawa share]# chkconfig smb on [root@gawa share]# chkconfig --list smb smb 0:off 1:off 2:off 3:on 4:on 5:on 6:off [root@gawa share]#
← HS-DGL! + ハックキット 2.0:ファンコントロール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ PC-MV52DX/U2 到着 |