Linux ACLs and user terminal commands

Source: Internet
Author: User

Facl:filesystem access Control list--file system

Save additional access control permissions with file extension properties


SETFACL: Set File extension permissions

-M: Set

U:uid:perm

G:gid:perm

example:setfacl-m g:nichol:rw inittab

D:u:uid:perm (catalogue)

D:g:gid:perm (catalogue)

-x: Cancel

U:uid

G:gid

example:setfacl-x u:nichol inittab

-N: Do not recalculate effective permissions, Setfacl ACL mask is recalculated by default

-B: Remove all extended ACL rules

--mask: Setting effective Permissions

example:setfacl-m mask::rw-inittab


Getfacl: Viewing file extension permissions


Terminal command:

W

W.H.O.

WhoAmI

Last: Displays the/var/log/wtmp file, showing the user login history and System restart history

-N #: Displays information about recent # times

lastb: Display/var/log/wtmp file, display user error login attempt

-N #: Displays information about recent # times

Lastlog: Displays the last successful logon information for each user

-U USERNAME: Displays the most recent login information for the specified user

basename: Get path base name directly

$: Script path and name when executing script

Mail: View messages

hostname: Display host name


Terminal type:

Console: Consoles

Pty: Physical Terminal (VGA)

TTY: Virtual terminal (VGA)

TTYs: Serial terminal

pts/#: Pseudo terminal


Linux ACLs and user terminal commands

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.