Samba的安装位置取决于你是如何安装它的。以下是两种常见的安装方式及其对应的默认安装位置:
使用包管理器安装(如`apt`在Debian/Ubuntu系统上):
安装命令:`sudo apt update` 和 `sudo apt install samba -y`
配置文件位置:`/etc/samba/`
从源码安装:
下载源码包:`wget "http://hetu.baidu.com:80/api/tool/getFile?"`(注意:请替换为正确的下载链接)
安装命令:`sudo apt upgrade -y` 和 `sudo apt install samba -y`
配置文件位置:`/usr/local/samba/lib/`
请根据你的安装方式进行相应的配置。如果你是通过包管理器安装的,那么配置文件应该在`/etc/samba/`目录下。如果你是从源码安装的,配置文件应该在`/usr/local/samba/lib/`目录下。