Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Ubuntu-sudo与ACL_Linux_Ubuntu 14.04_Acl_Sudo - Fatal编程技术网

Linux Ubuntu-sudo与ACL

Linux Ubuntu-sudo与ACL,linux,ubuntu-14.04,acl,sudo,Linux,Ubuntu 14.04,Acl,Sudo,如果这是显而易见的,我很抱歉,但我是Linux新手。 我试图设置一个git裸目录,为此我在Ubuntu上安装了ACL。然后我运行了以下命令: adduser git mkdir /repositories chmod 700 /repositories setfacl -m defaut:user::rwx /repositories sudo chown git:git /repositories 一切都很好,直到我重新启动机器。现在我不能再执行sudo了。每次我按自己的方式做,我都会得到以

如果这是显而易见的,我很抱歉,但我是Linux新手。 我试图设置一个git裸目录,为此我在Ubuntu上安装了ACL。然后我运行了以下命令:

adduser git
mkdir /repositories
chmod 700 /repositories
setfacl -m defaut:user::rwx /repositories
sudo chown git:git /repositories
一切都很好,直到我重新启动机器。现在我不能再执行sudo了。每次我按自己的方式做,我都会得到以下信息:

[[sudo]] password for Andre:
Sorry, try again
我输入的密码与我一直使用的密码相同,使用这些帐户凭据进行SSH没有任何问题。
有人知道发生了什么以及如何修复吗?

我认为问题出在setfacl上。我应该使用“存储库”而不是“/repositories”。通过这种方式,我在根上设置了acl。最后我重新安装了Linux