---
title: "Linux给用户和文件赋予权限"
author: "HappyForever"
date: "2014-03-13T15:00:24Z"
tags: []
categories: ["操作系统"]
slug: "linux"
draft: false
lastmod: "2014-03-13T15:00:24Z"
id: 2030503
url: "https://happyforever.iteye.com/blog/2030503"
---

1、先对用户所属的的组赋权限：
 chown -R 用户名:用户组  目录
2、再对目录赋予权限：
chmod -R 775  目录