smbd 立ち上げ時の log.smbd
[2010/05/12 20:50:19, 0] smbd/server.c:1065(main)
smbd version 3.4.5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/05/12 20:50:19, 0] smbd/server.c:457(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: アドレスは既に使用中です
文句を言われるけど動作は問題なさそう.
2010/05/12
2010/04/12
Samba 起動エラー
# /usr/local/samba-3.4.5/sbin/smbd -D
/usr/local/samba-3.4.5/sbin/smbd: error while loading shared libraries: libtalloc.so.1: cannot open shared object file: No such file or directory
# cd /etc/ld.so.conf.d
# cat smb.conf
/usr/local/samba/lib
# ldconfig
参考)
Sambaインストール
http://d.hatena.ne.jp/clmind/20080709
/usr/local/samba-3.4.5/sbin/smbd: error while loading shared libraries: libtalloc.so.1: cannot open shared object file: No such file or directory
# cd /etc/ld.so.conf.d
# cat smb.conf
/usr/local/samba/lib
# ldconfig
参考)
Sambaインストール
http://d.hatena.ne.jp/clmind/20080709
Samba 3.4.5 インストール
CentOS5.4 マシンにインストール
% ./configure --prefix=/usr/local/samba-3.4.5
% make
% make instlal
..
..
==============================================================
MO files for pam_winbind are installed.
==============================================================
==============================================================
All MO files for Samba are installed. You can use "make uninstall"
or "make uninstallmo" to remove them.
==============================================================
正常にmakeできた.
% ./configure --prefix=/usr/local/samba-3.4.5
% make
% make instlal
..
..
==============================================================
MO files for pam_winbind are installed.
==============================================================
==============================================================
All MO files for Samba are installed. You can use "make uninstall"
or "make uninstallmo" to remove them.
==============================================================
正常にmakeできた.
Samba 3.5.2 インストール
CentOS5.4 マシンにインストール
% ./configure --prefix=/usr/local/samba-3.5.2
% make
...
...
Compiling client/client.c
Compiling client/clitar.c
Compiling client/dnsbrowse.c
Compiling lib/readline.c
Compiling ../libcli/security/display_sec.c
Linking bin/smbclient
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `PC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `UP'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `BC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetstr'
collect2: ld はステータス 1 で終了しました
make: *** [bin/smbclient] エラー 1
3.5だから?
% ./configure --prefix=/usr/local/samba-3.5.2
% make
...
...
Compiling client/client.c
Compiling client/clitar.c
Compiling client/dnsbrowse.c
Compiling lib/readline.c
Compiling ../libcli/security/display_sec.c
Linking bin/smbclient
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `PC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `UP'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `BC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetstr'
collect2: ld はステータス 1 で終了しました
make: *** [bin/smbclient] エラー 1
3.5だから?
2010/02/23
Windows 7 と Samba 3 の相互運用性
Windows 7 と Samba 3 の相互運用性 (マイクロソフト情報)
http://technet.microsoft.com/ja-jp/library/ee681622%28WS.10%29.aspx
Sambaは3.2.12 または 3.3.5が必要らしい.
必要なレジストリ設定
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters
DWORD(32bit) DomainCompatibilityMode 1
DWORD(32bit) DNSNameResolutionRequired 0
2009/10/19
Samba 認証方式
Samba 3.0 から認証方式が追加された.
Samba 3.0の全貌 改訂版[後編]
http://www.atmarkit.co.jp/flinux/special/samba3b/samba06.html
従来の smbpasswd を使う方法
passdb backend = smbpasswd
デフォルトはTDB形式のデータベース(tdbsam)らしい.
Samba 3.0の全貌 改訂版[後編]
http://www.atmarkit.co.jp/flinux/special/samba3b/samba06.html
従来の smbpasswd を使う方法
passdb backend = smbpasswd
デフォルトはTDB形式のデータベース(tdbsam)らしい.
2009/09/04
2009/08/29
特定ユーザーにSambaの共有ディレクトリへのアクセス権を与えるには
認証は違うユーザで,書き込みは同じユーザ権限にしたいとき.
valid users = [ユーザA] , [ユーザB] , [ユーザC]
force user = [同じユーザ名]
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/184sambaspuser.html
valid users を定義しないで,force user を定義すれば
Samba で認証できたユーザは同じユーザでアクセス可能.
valid users = [ユーザA] , [ユーザB] , [ユーザC]
force user = [同じユーザ名]
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/184sambaspuser.html
valid users を定義しないで,force user を定義すれば
Samba で認証できたユーザは同じユーザでアクセス可能.
2009/08/13
Samba PDCの設定
SambaでのPDC構築
Logon path の設定で,logon path = ¥¥%N¥profiles¥%u の
%u は %U にしないとダメだった.
%N はこのままでもよかったのかもしれないが,netbios名を入れた.
netbios名を指定している場合はこのほうがいいのかも.
参考)
http://www.turbolinux.co.jp/products/server/11s/user_guide/sambapdc.html
Logon path の設定で,logon path = ¥¥%N¥profiles¥%u の
%u は %U にしないとダメだった.
%N はこのままでもよかったのかもしれないが,netbios名を入れた.
netbios名を指定している場合はこのほうがいいのかも.
参考)
http://www.turbolinux.co.jp/products/server/11s/user_guide/sambapdc.html
Windows XP Professional のマシンがドメインに参加できない
Windows XP Professional のマシンがドメインに参加できない
http://wiki.samba.gr.jp/mediawiki/index.php?title=Windows_XP_Professional_のマシンがドメインに参加できない
Samba3.0以降ではPDCとして設定するだけで参加できるようになっている.
http://wiki.samba.gr.jp/mediawiki/index.php?title=Windows_XP_Professional_のマシンがドメインに参加できない
Samba3.0以降ではPDCとして設定するだけで参加できるようになっている.
2009/08/11
Samba ユーザー情報の移行
2.0時代の smbpasswd ファイルを 3.0 に合わせてtdbsamに変更する方法.
# pdbedit -i smbpasswd:/etc/smbpasswd -e tdbsam:/etc/samba/passdb.tdb
参考)
http://www.miraclelinux.com/technet/document/samba/samba0016.html
# pdbedit -i smbpasswd:/etc/smbpasswd -e tdbsam:/etc/samba/passdb.tdb
参考)
http://www.miraclelinux.com/technet/document/samba/samba0016.html
登録:
投稿 (Atom)