Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/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
Ubuntu 拒绝向服务器添加文件的权限_Ubuntu_Github_Permissions_Ubuntu 14.04 - Fatal编程技术网

Ubuntu 拒绝向服务器添加文件的权限

Ubuntu 拒绝向服务器添加文件的权限,ubuntu,github,permissions,ubuntu-14.04,Ubuntu,Github,Permissions,Ubuntu 14.04,我正在使用将github文件部署到我的live server,但在权限方面不断出现错误 我在Ubuntu(14.04)上,/var/www/html user:group设置为www-data:www-data,以与HHVM和Nginx一起工作。是否有一种方法可以添加现有用户,比如说chris,以便能够将文件添加到该目录?您应该将chris添加到www数据组,如下所示。将usermod与以下标志一起使用 usermod -a -G [group-name] [user-name] 或 希望有帮

我正在使用将github文件部署到我的live server,但在权限方面不断出现错误


我在Ubuntu(14.04)上,/var/www/html user:group设置为
www-data:www-data
,以与HHVM和Nginx一起工作。是否有一种方法可以添加现有用户,比如说
chris
,以便能够将文件添加到该目录?

您应该将chris添加到www数据组,如下所示。将usermod与以下标志一起使用

usermod -a -G [group-name] [user-name]

希望有帮助, 拍

sudo usermod -a -G www-data chris