Soal File Server Samba – LKS 2017
- Share “MANAGER”
- Path is /files/manager
- Give access only users “user1” to “user10”
- Make sure the share is not shown in the network browser of the clients
- Share “GUEST”
- Path is /files/guest
- Enable read-only access to everyone
Penyelesaian Soal File Server Samba – LKS 2017
# nano buat_user_samba.sh
for ((i=1; i<=10; i++)) do useradd sambauser$i smbpasswd -a sambauser$i <<< “smkbisasmkhebat”$’\n'”smkbisasmkhebat” done |
# chmod +x buat_user_samba.sh
# ./buat_user_samba.sh
# apt-get install samba
# nano /etc/samba/smb.conf
[manager] path = /files/manager browseable = no security = user valid users = user1, user2, user3, user4, user5, user6, user7, user8, user9, user10 writeable = yes create mask = 777 directory mask = 777
[guest] |
# /etc/init.d/samba restart
Silahkan ujicoba melalui PC Client, dengan mengakses file server….
Sekian, Semoga bermanfaat…!!!