Cài đặt Samba
Cài đặt apt update apt install samba smbclient cifs-utils Thư mục chia sẻ & user 61 adduser --system skywirex 62 chown -R skywirex /mnt/hdd4tb Cấu hình 14 mv /etc/samba/smb.conf /etc/samba/smb.conf.bak 15 vim /etc/samba/smb.conf 16 nano /etc/samba/smb.conf 17 chmod -R 0755 /mnt/hdd4tb 18 chown -R nobody:nobody /mnt/hdd4tb 19 groupadd smbshare 20 chgrp -R smbshare /mnt/hdd4tb 21 chmod 2775 /mnt/hdd4tb 22 useradd -M -s /sbin/nologin skywirex 23 usermod -aG smbshare skywirex 24 id skywirex 25 systemctl restart nmbd 26 nano /etc/samba/smb.