"Linux" User rights settings, with FTP access

Source: Internet
Author: User
Tags ftp access

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.