我们尝试在Linux中挂载一个目录mount /home/User/backup
,但收到错误
只有root才能做到
答案 0 :(得分:2)
您需要提升权限......
尝试SELECT a.*, b.full_name as salesman,"" as payment_amount from sales a
LEFT JOIN user b ON a.salesman_id = b.id
WHERE a.deleted_at IS NULL AND (a.status = '1' || a.status = '2' )
AND a.balance <= 0
UNION ALL
SELECT '','','',... till 28 times,payment_amount from transaction
答案 1 :(得分:1)
用于挂载目录Linux的一般mount命令语法,
sudo mount source_dir destination_dir
sudo 是类似Unix的计算机操作系统的程序,允许用户使用其他用户的安全权限运行程序,默认情况下是超级用户。
答案 2 :(得分:-2)
安装和卸载文件系统通常需要root权限。如果您以普通用户身份登录,则可以使用su - 切换到root或sudo。
用户可以访问“mount”命令尝试下面的url。
https://superuser.com/questions/677423/debian-allow-user-to-be-root-only-for-specific-commands