SAMBA (SMBサーバ)を動かしてみる
Modified: 23 September 2002
RedHat Linux7.2 をインストールすれば、ソフトはインストールされていますので、設定ファイルをカスタマイズし、自動起動させるだけです。
SAMBAのパスワードファイル(smbpasswd)を作成する
/etc/samba に移動し、以下を実行して、パスワードファイルを作成します。
# cd /etc/samba
# cat /etc/passwd | mksmbpasswd.sh > smbpasswd
SAMBA用のパスワードの設定
先に作成した、smbpasswd を実行し、パスワードの設定をします。
# smbpasswd tomo
New SMB password: ********
Retype new SMB password: *******
Password changed for user tomo
#
Workgroupを確認する
"/etc/samba/smb.conf"を開いて、ワークグループ名を確認します。
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = Workgroup
自動起動させる方法
自動起動は、以下のコマンドで行います。
# /sbin/chkconfig --add smb
# /sbin/chkconfig smb on