CREATE DATABASE mydb; CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword'; GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'localhost'; FLUSH PRIVILEGES;
5.3 文件服务器
以Samba为例,介绍文件服务器的安装与配置:
(1) 安装Samba:
sudo apt install samba
(2) 配置Samba共享:
编辑/etc/samba/smb.conf文件,添加共享配置。
[shared] path = /srv/samba/shared browseable = yes read only = no guest ok = yes