Get the App
SLTechnology News&Howtos  ›  Servers  › 

Check the specific process of Linux default access control permissions

Shulou Source: shulou.com Published: 2022-06-01 17:23:39 10月31日 Update

This article mainly introduces "specific process of consulting Linux default access control permissions". In daily operation, I believe many people have doubts about the specific process of consulting Linux default access control permissions. Xiaobian consulted all kinds of information and sorted out simple and easy to use operation methods. I hope to answer your doubts about "specific process of consulting Linux default access control permissions"! Next, please follow the small series to learn together!

Objective: To understand Linux file formats and permissions settings

Experimental procedure:

1. Log in to linux as root

2. Create a new account anyuser/usr/sbin/useradd anyuser using the following command

3. Set password for anyuser account:

/usr/sbin/passwd

Changing password for user anyuser

New UN IX password

Retype UNIX password

4. Log out and log in as anyuser

5. View linux password file contents: /bin/cat/etc/passwd

root:x:0:0:root:/bin/bash

bin:x:1:1:bin:/bin

daemon:x:2:2:daemon:/sbin:

mail:x:8:12:mail:/var/spool/mail

named:x"25:25:Bind User:/var/named:

dnscache:x:410:405:dnscache user:/var/djbdns:/bin/true

xfs:x:414:414:X Font Server:/etc/S11/fs:/bin/false

postfix:x:415:416:postfix:/var/spool/postrix:

mtsql:x:416:417MySQL server:/var/lib/mysql:/bin/bash

test:x:501:501:condor:/home/condor:/bin/bash

anyuser:x:502:506:zhengya:/home/julia:/bin/bash

6. Log out and log in as root

7. Enter the following command: /bin/cho-r/etc/mod

chmod is a command used to issue file or directory permissions under Linux. We'll talk about it in detail in OS Security.

8. Log in again as anyuser and try listing everything under/etc/

9. The command should fail because the system no longer allows access to Everyone

10. As a non-root user, you can post a password using the following command:

host$ passwd

(current) UNIX password:

New UNIX password:

Retype new UNIX password:

Passwd:all authentication tokens updated successfully

At this point, on the "check Linux default access control permissions specific process" learning is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Tags: Permissions commands procedures access control accounts learning login content passwords files more system identity lab help utility next operating system full article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Docker OPPO Reno Huawei