[ubuntu-jp:2549] Re: samba
Kouzou Tsukiyama
8kt8fn65 @ kyi.biglobe.ne.jp
2010年 1月 28日 (木) 07:25:47 GMT
On Thu, 28 Jan 2010 13:17:22 +0900
Satoru Matsumoto <helios_reds @ gmx.net> wrote:
松本さん、ご返事ありがとうございます。
> この通り、smbpasswd ファイルは root にしか読み書きできないパーミッショ
> ンになっています。
> $ sudo smbpasswd
言われるとおりでした。ついうっかりしており、失礼しました。
$ sudo smbpasswd -a tukiyama
でうまく動作したようです。
> また、手元の環境の smbpasswd ファイルを見てみたら
>
> # This file is the authentication source for Samba if 'passdb backend'
> # is set to 'smbpasswd' and 'encrypt passwords' is 'Yes' in the
> # [global] section of /etc/samba/smb.conf
>
> …となっていました。smb.conf の [global] セクションはどうなっています
> か?
ところが、smbpasswd ファイルが見つかりません。[global] セクションはデ
フォルトのままです。一応以下にのせます。
-----------------------------------------------------------------------
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will
# part of
workgroup = WORKGROUP
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS
# Server wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT
# both
; wins server = w.x.y.z
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
# What naming service and in what order should we use to resolve host
# names to IP addresses
; name resolve order = lmhosts host wins bcast
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine
# is not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes
-----------------------------------------------------------------------------
> Ubuntu の samba パッケージを入れた場合のデフォルト設定がどうなっている
> か上述のように確認していませんが、samba 3.X だと基本的には smbpasswd
> ではなく pdbedit を使う前提になっているはずなので、そのへんも見直して
> みる必要があるかもしれません。
そうですか、貴重なコメントありがとうございました。とにかく try して
みます。
Ubuntu 9.04 のときは、Windows Printer via SAMBA で Windows(vista) に繋が
れたプリンタに簡単に印刷出来たのですが、Windows7 にしたら繋がらなくなり
ました。Windows7 では新しく ID と password を設定するようにはなって
vista とは変わったのですが、ここの設定は off にしています。
どうも有難うございました。
--
Kouzou Tsukiyama <8kt8fn65 @ kyi.biglobe.ne.jp>
ubuntu-jp メーリングリストの案内