Tuesday, June 16, 2009

Cài đặt Samba server

1.Mở SSH console, gõ lệnh:

sudo apt-get install samba smbfs

2.Tạo samba user

(smbpasswd -a )
sudo adduser sambauser
smbpasswd -a sambauser

3.Sửa file /etc/samba/smb.conf -->> bổ sung share folder

[homes]
comment = Home Directories
browseable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
valid users = %S
[soft]
comment = Soft Directories
path = / soft
guest ok = yes
browseable = yes
directory mask = 0777
read only = no

4.Tạo thư mục và khởi động lại Samba

mkdir /soft
chmod 777 /soft
/etc/init.d/samba restart

•Chép các Zimbra software cần thiết vào thư mục soft đã shared

No comments:

Post a Comment