ude:~# mkdir /mnt/share ude:~# chgrp yamasita /mnt/share ude:~# chmod g+rw /mnt/share ude:~# ls -ld /mnt/share/ drwxrwsr-x 2 root yamasita 4096 Jan 29 08:54 /mnt/share/
ude:~# smbpasswd -a yasunari New SMB password: Retype new SMB password: ude:~#
ude:~# cd /etc/samba/ ude:/etc/samba# mv smb.conf smb.conf.orig ude:/etc/samba# cp smb.conf.orig smb.conf ude:/etc/samba# vi smb.conf : ude:/etc/samba# diff -c smb.conf.orig smb.conf *** smb.conf.orig Sat Jan 27 23:34:47 2007 --- smb.conf Mon Jan 29 09:01:18 2007 *************** *** 191,213 **** ; writable = no ; share modes = no ! [printers] ! comment = All Printers ! browseable = no ! path = /tmp ! printable = yes ! public = no ! writable = no ! create mode = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers ! [print$] ! comment = Printer Drivers ! path = /var/lib/samba/printers ! browseable = yes ! read only = yes ! guest ok = no # Uncomment to allow remote administration of Windows print drivers. # Replace 'ntadmin' with the name of the group your admin users are # members of. --- 191,213 ---- ; writable = no ; share modes = no ! ;[printers] ! ; comment = All Printers ! ; browseable = no ! ; path = /tmp ! ; printable = yes ! ; public = no ! ; writable = no ! ; create mode = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers ! ;[print$] ! ; comment = Printer Drivers ! ; path = /var/lib/samba/printers ! ; browseable = yes ! ; read only = yes ! ; guest ok = no # Uncomment to allow remote administration of Windows print drivers. # Replace 'ntadmin' with the name of the group your admin users are # members of. *************** *** 235,237 **** --- 235,243 ---- ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom + [share] + comment = LS-GL share + path = /mnt/share + read only = No + force create mode = 0664 + force directory mode = 0775 ude:/etc/samba#プリンタ関連のコメントアウトと share の追加。
ude:/etc/samba# /etc/init.d/samba reload Reloading /etc/samba/smb.conf (smbd only). ude:/etc/samba#
ude:/etc/samba# cd /mnt/share/ ude:/mnt/share# ls ?????????????????? ??????????????????.txt ude:/mnt/share# ls > /tmp/a ude:/mnt/share# file /tmp/a /tmp/a: UTF-8 Unicode text ude:/mnt/share# ls | nkf -e 新規テキスト ドキュメント.txt ude:/mnt/share#charset の設定をしていないので、ファイル名が UTF-8 になっている。
← LS-GL: debian: いろいろインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-GL: debian: apache のインストール |