はじめての自宅サーバ構築 - Fedora/CentOS - Last Update 2008/07/25
It opened to 2004/09/19.
当サイトはFedora9で運用しています
Visitors
Pageviews
Today(IP/PV)
3,374,114
12,762,031
1,272/8,653

■ TIPS集『ファイルサーバ(Samba)』

 sambaのパスワードとLinuxログインパスワードを同期するには?

デフォルトだと、sambaにアクセスするにはsambaアクセス用のパスワードを設定しなければなりません。
  参照:http://kajuhome.com/samba.shtml#n03

以下の設定を行うことにより、Linuxログインのパスワードでアクセス出来るようになります。
# vi /etc/samba/smb.conf
# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#    the encrypted SMB passwords. They allow the Unix password
#    to be kept in sync with the SMB password.
以下の";"を削除し有効にする
 unix password sync = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

sambaサービスを再起動します。
# /etc/rc.d/init.d/smb restart
ページ先頭へ

Copyright(©)2004-2008 First home server construction. All Right Reserved.