Learning samba complex user permission settings.

Source: Internet
Author: User
Learning samba complex user permission settings, explaining the following command-Linux general technology-Linux technology and application information. The following is a detailed description. Please explain the following command. Thank you. Just explain a few representative statements. Thank you.
Root @ beinanIBM:/home # useradd-g siradm-G sirmas, siruser-d/home/samba-s/bin/false siradm


5.3 ownership and permissions of related directories;

Root @ beinanIBM:/home # ls-l | grep samba

Drwxr-xr-x 5 root 128 samba

Root @ beinanIBM:/home # ls-l | grep samba

Drwxr-xr-x 5 siradm 128 samba

Root @ beinanIBM:/home # cd/home/samba/

Root @ beinanIBM:/home/samba # ls-lh

Total 0

Drwxr-xr-x 2 root 48 software

Drwxr-xr-x 2 root 48 public document

Drwxr-xr-x 2 root 48 shared writable

Drwxr-xr-x 4 root 96 Member

Drwxr-xr-x 4 root 96 Management Department

Root @ beinanIBM:/home/samba # chown-R siradm: sirmas software public document sharing writable Management Department

Root @ beinanIBM:/home/samba # chown-R siradm: siruser Member

Root @ beinanIBM:/home/samba # chmod 1777 shared writable

Root @ beinanIBM:/home/samba # chmod 775 software public document

Root @ beinanIBM:/home/samba # chmod 770 Administrator

Root @ beinanIBM:/home/samba # ls-lh

Total 0

Drwxrwxr-x 2 siradm sirmas 48 software

Drwxrwxr-x 2 siradm sirmas 48 public document

Drwxrwxrwt 2 siradm sirmas 48 shared writable

Drwxrwx --- 4 siradm siruser 96 Member

Drwxrwx --- 4 siradm sirmas 96 Management Department

Root @ beinanIBM:/home/samba # cd member

Root @ beinanIBM:/home/samba/member # chown sir03: sirmas sir03

Root @ beinanIBM:/home/samba/member # chown sir03: sirmas sir04

Root @ beinanIBM:/home/samba/member # chmod 770 sir03 sir04

Root @ beinanIBM:/home/samba/member # ls-lh

Total 0

Drwxrwx --- 2 sir03 sirmas 48 sir03

Drwxrwx --- 2 sir04 sirmas 48 sir04

Root @ beinanIBM:/home/samba/member # cd ../Management Department/

Root @ beinanIBM:/home/samba/Management Department # ls

Sirmas01 sirmas02

Root @ beinanIBM:/home/samba/Management Department # ls-lh

Total 0

Drwxr-xr-x 2 root 48 sirmas01

Drwxr-xr-x 2 root 48 sirmas02

Root @ beinanIBM:/home/samba/Management Department # chown sirmas01: sirmas sirmas01

Root @ beinanIBM:/home/samba/Management Department # chown sirmas02: sirmas sirmas02

Root @ beinanIBM:/home/samba/Management Department # ls-lh

Total 0

Drwxr-xr-x 2 sirmas01 sirmas 48 sirmas01

Drwxr-xr-x 2 sirmas02 sirmas 48 sirmas02

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.