Reprinted from: http://blog.csdn.net/fengeh/article/details/16819563
Leadership needs, need to create users, and allow their additions and deletions, but also require that they only in their own access to the directory, can not go elsewhere. After querying the information, the operation is as follows:
1. Creating users and accessing directories
Useradd 114sl-d/usr/share/tomcat5/webapps/drp/sl-m
Set Password
passwd 114SL
Assign access to directory permissions to all users
Chown-r 114SL/USR/SHARE/TOMCAT5/WEBAPPS/DRP/SL
2. Create a group (skip if existing group)
Groupadd Oinstall
User Settings Group
Useradd-g Oinstall 114SL
3. Set the upper directory to root
Chown root/usr/share/tomcat5/webapps/drp/
Granting permissions to the upper directory
chmod 771/USR/SHARE/TOMCAT5/WEBAPPS/DRP
After testing, the user will be able to access the directory after login, no access to the upper directory, OK.
According to the previous online operation, given 700 permission, will prompt the error, even its access to the directory can enter.
"Linux" User rights settings, with FTP access