[root@hackkit samba]# diff -c smb.conf.orig smb.conf *** smb.conf.orig 2005-03-18 00:49:21.000000000 +0900 --- smb.conf 2005-10-23 13:16:53.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,12 ---- [global] ! ; unix charset = eucJP-ms ! unix charset = cp932 dos charset = cp932 display charset = eucJP-ms ; workgroup = MYGROUP + workgroup = YAMASITA server string = Samba %v on %h ; hosts allow = 192.168.1. 192.168.2. 127. *************** *** 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] --- 73,89 ---- writable = No printable = Yes ! [share] ! comment = Samba Documents ! path = /mnt/share ! read only = No ! ! ;[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,101 **** ; browseable = No ; guest ok = Yes ! [sambadoc] ! comment = Samba Documents ! path = /var/samba/docs ! guest ok = Yes ! read only = Yes ;[CD-ROM] ; comment = CD-ROM --- 98,108 ---- ; browseable = No ; guest ok = Yes ! ;[sambadoc] ! ; comment = Samba Documents ! ; path = /var/samba/docs ! ; guest ok = Yes ! ; read only = Yes ;[CD-ROM] ; comment = CD-ROM [root@hackkit samba]#
[root@hackkit root]# smbpasswd -a yasunari New SMB password: Retype new SMB password: Added user yasunari. [root@hackkit root]#
[root@hackkit root]# mkdir /mnt/share [root@hackkit root]# chgrp yamasita /mnt/share [root@hackkit root]# chmod g+w /mnt/share/ [root@hackkit root]#
[root@hackkit root]# /etc/rc.d/init.d/smb start SMBサービスを起動中: [ OK ] NMBサービスを起動中: [ OK ] [root@hackkit root]#
[root@hackkit share]# ls -al 合計 8 drwxrwxr-x 2 root yamasita 4096 Oct 23 13:17 ./ drwxr-xr-x 6 root root 4096 Oct 23 13:12 ../ -rwxr--r-- 1 yasunari yamasita 0 Oct 23 13:17 ?V?K?e?L?X?g ?h?L???????g.txt* [root@hackkit share]# ls -al | nkf -e ケ邱ラ 8 drwxrwxr-x 2 root yamasita 4096 Oct 23 13:17 ./ drwxr-xr-x 6 root root 4096 Oct 23 13:12 ../ -rwxr--r-- 1 yasunari yamasita 0 Oct 23 13:17 新規テキスト ドキュメント.txt* [root@hackkit share]#
[root@hackkit root]# chkconfig --list smb smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@hackkit root]# chkconfig smb on [root@hackkit root]# chkconfig --list smb smb 0:off 1:off 2:off 3:on 4:on 5:on 6:off [root@hackkit root]#こんなところかな。
← HS-DGL にハックキット 2.0 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ HS-DGL にハック de 録!! |