(membuat file di desktop dengan nama kelompok1.com)
xiitkj1:/home/xiitkj1# chmod -R 777 /home/xiitkj1/Desktop/kelompok1.com/
(untuk mengedit)
xiitkj1:/home/xiitkj1# nano /etc/samba/smb.conf
Cari
[global] (kalau ngak ada di tambahkan)
workgroup = is workgroup
(digantinama terserah)
server string = %h server(tanda # dihilangkan)
# security = user
(diubah)
security = share
(tuliskan dibawah sendiri)
[kelompo1.com]
comment = kelompok1.com
path = /home/xiitkj1/Desktop/kelompok1.com/ (tempat file)
guest ok = yes
browseable = yes
writable = yes
create mask = 0600
directory mask = 0700
merestart
xiitkj1:/home/xiitkj1# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
atau
(tulis sendiri)
[global]
workgroub = workgroub
security = share
[kelompok1]
comment = kelompok1
path =/home/xiitkj2/Desktop/kelompok1.com/
browsable=yes
public =yes
read only=no
guest ok=yes
writeable=yes
merestart
xiitkj1:/home/xiitkj1# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
untuk mengcopy file
xiitkj1:/home/xiitkj1# cp /etc/samba/smb.conf /home/xiitkj1/Desktop/kelompo1.com/
merestart
xiitkj1:/home/xiitkj1# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
(untuk mencoba)lalu lihat di webserverdengan alamat smb://190.160.2.30/
Tidak ada komentar:
Posting Komentar