我正在尝试创建一个符号链接,但我得到了许可被拒绝.我怎么说出原因?
原文链接:https://www.f2er.com/ubuntu/347887.htmlln -nfs /home/deploy/foo/shared/config/Nginx.conf /etc/Nginx/sites-enabled/foo ln: Failed to create symbolic link `/etc/Nginx/sites-enabled/foo': Permission denied
# This file is managed by Chef. # Do NOT modify this file directly. Defaults !lecture,tty_tickets,!fqdn # User privilege specification root ALL=(ALL) ALL deploy ALL=(ALL) ALL # Members of the group 'sysadmin' may gain root privileges %sysadmin ALL=(ALL) ALL # Members of the group 'sysadmins' may gain root privileges %sysadmins ALL=(ALL) ALL
我以一个名为deploy的用户身份登录,我在sysadmins组内.
whoami deploy cat /etc/group deploy:x:1000: sysadmin:x:2300:deploy