Sambaサーバ構築 【Ubuntu Server 11.10】

[目次]

1.Samba インストール
2.Sambaの設定
3.共有ディレクトリ作成&Ownerの変更
4.Sambaを再起動

[手順]

1.Samba インストール
$ sudo apt-get install samba

2.Sambaの設定
$ sudo cp -p /etc/samba/smb.conf /etc/samba/smb.conf.bk
$ sudo vi /etc/samba/smb.conf

[global]
workgroup = WORKGROUP dos charset = CP932 unix charset = UTF-8
display charset = UTF-8
security = user

[data]
path = /hdd/data
writable = no
guest ok = yes
guest only = yes

[music]
path = /hdd/music
writable = no
guest ok = yes
guest only = yes


path = /hdd/video
writable = no
guest ok = yes
guest only = yes

[public]
comment = Ubuntu File Server
path = /hdd/public
browseable = yes
guest ok = yes
read only = no
writable = yes
create mask = 0755

3.共有ディレクトリ作成&Ownerの変更
$ sudo mkdir -p /hdd/public
$ sudo chown nobody.nogroup /hdd/public

4.Sambaを再起動
$ sudo service smbd restart

Share Button

コメントを残す


6 + = 15

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>