ソフトウェア:squeeze編


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

samba設定ファイルの更新

  • 共有フォルダの作成/所有権の更新
KURO-BOX:~#
KURO-BOX:~# mkdir /mnt/share
KURO-BOX:~# chmod 777 /mnt/share
KURO-BOX:~#

  • 設定ファイルの記述①
    暫定版・・・
[global]
dos charset = CP932 
unix charset = EUCJP-MS
display charset = EUCJP-MS
workgroup = WORKGROUP
security = user
encrypt passwords = true
socket options = TCP_NODELAY
domain master = no
map to guest = bad user
usershare allow guests = no
coding system = SJIS

[share]
public = yes
path = /mnt/share
read only = no
writable = yes
force create mode = 0777
force directory mode = 0777
guest ok = no

  • 設定ファイルの記述②
[global]
client code page = 932
coding system = SJIS
display charset = EUC-JP
domain master = no
dos charset = CP932 
encrypt passwords = true
map to guest = bad user
security = user
socket options = TCP_NODELAY
unix charset = UTF-8
usershare allow guests = no
workgroup = WORKGROUP

  • sambaユーザの追加/sambaの再起動
KURO-BOX:~#
KURO-BOX:~# smbpasswd -a tmp-kun
New SMB password:
Retype new SMB password:
KURO-BOX:~#
KURO-BOX:~# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
KURO-BOX:~#


smbclientの実行

KURO-BOX:~#
KURO-BOX:~# smbclient //XXX.XXX.XXX.XXX/pub
Enter root's password:
Domain=[XXXX] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>
・
・
・
smb: \> exit
KURO-BOX:~#


localeの更新

KURO-BOX:~#
KURO-BOX:~# echo "ja_JP.EUC-JP EUC-JP" >> /etc/locale.gen
KURO-BOX:~# echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen
KURO-BOX:~# locale-gen
Generating locales (this might take a while)...
  ja_JP.EUC-JP... done
  ja_JP.UTF-8... done
Generation complete.
KURO-BOX:~#

KURO-BOX:~#
KURO-BOX:~# ls /mnt/share/
smb.conf.default  ????????????.txt
KURO-BOX:~#
KURO-BOX:~# export LANG=ja_JP.UTF-8
KURO-BOX:~# ls /mnt/share/
smb.conf.default  設定メモ.txt
KURO-BOX:~#
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。