Add the linux user and folder licensed to one user

Add the next ### linux user and folder licensed to one user

Background: When doing a project, the front page of outsourcing need to debug the test environment, but not to give his account information server, you add a new sub-account on the server, give permission to the account of the project file.

Add a new user under linux

//添加一个用户名为wangkk的新用户
useradd wangkk

User password

//给用户设置密码,依次输入密码和确认密码
passwd wangkk

The authorization folder to a user

//把某个文件夹及其内容的权限授权给用户
chown -R wangkk weixiu   //把weixiu文件夹及其内容授权给wangkk用户

Guess you like

Origin www.cnblogs.com/alisleepy/p/11200333.html