In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.