[share] comment = Shared Folder with username and password path = /hdd/cloudfiles/samba/wise public = yes writable = yes valid users = wise create mask = 777 directory mask = 777 force user = wise force group = wise available = yes browseable = yes
设置密码
1
sudo smbpasswd -a wise
查看服务
1 2 3 4 5 6 7 8 9 10 11 12 13 14
sudo systemctl status samba
○ samba-ad-dc.service - Samba AD Daemon Loaded: loaded (/usr/lib/systemd/system/samba-ad-dc.service; enabled; preset: enabled) Active: inactive (dead) (Result: exec-condition) since Wed 2024-06-05 23:06:13 CST; 3 days ago Condition: start condition unmet at Wed 2024-06-05 23:06:13 CST; 3 days ago Docs: man:samba(8) man:samba(7) man:smb.conf(5) CPU: 32ms
Jun 05 23:06:13 wise-desktop systemd[1]: Starting samba-ad-dc.service - Samba AD Daemon... Jun 05 23:06:13 wise-desktop systemd[1]: samba-ad-dc.service: Skipped due to 'exec-condition'. Jun 05 23:06:13 wise-desktop systemd[1]: Condition check resulted in samba-ad-dc.service - Samba AD Daemon being skipped.
Jun 09 10:13:59 wise-desktop smbd[749651]: pam_unix(samba:session): session opened for user wise(uid=1002) by (uid=0) Jun 09 15:21:35 wise-desktop smbd[749651]: pam_unix(samba:session): session closed for user wise Jun 09 17:51:34 wise-desktop smbd[707285]: pam_unix(samba:session): session closed for user wise Jun 09 18:07:20 wise-desktop smbd[787474]: pam_unix(samba:session): session opened for user wise(uid=1002) by (uid=0) Jun 09 18:08:59 wise-desktop smbd[787474]: pam_unix(samba:session): session closed for user wise Jun 09 18:09:03 wise-desktop smbd[787551]: pam_unix(samba:session): session opened for user wise(uid=1002) by (uid=0) Jun 09 18:29:26 wise-desktop smbd[789586]: pam_unix(samba:session): session opened for user wise(uid=1002) by (uid=0) Jun 09 18:29:27 wise-desktop smbd[789586]: pam_unix(samba:session): session closed for user wise Jun 09 18:29:29 wise-desktop smbd[789602]: pam_unix(samba:session): session opened for user wise(uid=1002) by (uid=0) Jun 09 18:43:23 wise-desktop smbd[789602]: pam_unix(samba:session): session closed for user wise