共享文件

最后更新于:2022-04-01 22:03:34

[TOC] # Manjaro 配置Samba 共享文件夹 ## Dolphin - KDE/plasma ``` yay -S samba kdenetwork-filesharing manjaro-settings-samba ``` ## Nautilus ``` yay -S nautilus-share manjaro-settings-samba ``` 编辑 `/etc/samba/smb.conf`配置文件,按照格式最后添加: ``` ... [m_sharee] comment = MShare Directories path = /home/{username}/m_share browseable = yes read only = no create mask = 0700 directory mask = 0700 ``` `read only` 属性设置为`no` 是为了有写入文件权限。 添加分享用户并设置密码 ```shell gpasswd sambashare -a username smbpasswd -a username ``` 启用smaba 服务 ```shell systemctl enable smb nmb systemctl start smb nmb ``` 在其他设备上,添加*服务器*,输入该本地 ip 地址,然后输入所授权的用户密码登录,即可~ # 参考 https://blog.csdn.net/aaa111/article/details/82774860 [Using Samba in your File Manager](https://wiki.manjaro.org/index.php?title=Using_Samba_in_your_File_Manager)
';