2020年10月

安装

apt install samba
  1. 修改 PID, 编辑 /lib/systemd/system/smbd.service
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmbd.service winbind.service

[Service]
Type=notify
NotifyAccess=all
#PIDFile=/var/run/samba/smbd.pid
PIDFile=/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStartPre=/usr/share/samba/update-apparmor-samba-profile
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity


[Install]
WantedBy=multi-user.target

2、 修改 /etc/samba/smb.conf 配置

3、添加用户
# smbpasswd -a kanaka

源配置
/etc/apt/sources.list

# u-nas
deb http://shanghai.unasmirror.com/debian/ callisto main non-free contrib

gpg

curl -fsSL http://shanghai.unasmirror.com/debian/unasos3.gpg | apt-key add -

安装相关软件

unas-kernel unas-desktop about-unas afp-unas upnp-unas appmanager-unas automount-unas changepassword-unas controlpanel-unas ddns-unas disksmart-unas docker-unas easysetup-unas errormessage-unas ftp-unas gpg-unas groupaccount-unas hardwaresetup-unas help-unas iscsitarget-unas loginmessage-unas lvm-unas mediacenter-unas network-unas nfs-unas notificationsetup-unas poweroptions-unas quota-unas raidmanager-unas rclone-unas regionaloptions-unas rsync-unas samba-unas sharedfolder-unas ssh-unas sshshell-unas systemaccess-unas systeminfo-unas systemlog-unas systemupgrade-unas theme-unas  transmission-unas uanywhere-unas ufileexplorer-unas unas-api updateserver-unas upnp-unas  useraccount-unas wallpaper-unas webdav-unas