Example of SU:
Su switches to the root user by default without adding any parameters, but does not go to the root user's home directory. That is to say, it is switched to the root user, however, the root logon environment is not changed. You can
Install HDFS 2.7.1 on CentOS 6.6
This article tries to build 10 HDFS clusters on CentOS, instead of YARN and Hive, because Spark will be used later. Install jdk 1.8 first, which is not described here.
The server has 12 disks, so this is a real
1, the Linux file attributes;
The properties of a Linux file or directory mainly include: The node of the file or directory, the type, the permission mode, the number of links, the users and user groups, the time of the most recent visit or
5. chown and chgrp commands
We can guess what they do from their names, but these two commands require root permissions.
The CHOWN command is in the format of user: group in the middle of chown User: group file. A part can be omitted as needed. For
to the permission. In the previous section on Linux Users and user master management, in fact, their nature (or the user and user groups appear in the original intention) are convenient rights management. The importance of rights management for
How to change the owner and group of a file under Linux >
Learn to change the owner and group ownership of files and directories using the Chown and CHGRP commands. This tuxfile will give you more insight if you already have the knowledge of file
Common Linux commands (24) and common linux commands
Chown changes the owner of a specified file to a specified user or group. The user can be the user name or user ID, and the group can be the group name or group ID; files are separated by spaces
#!/bin/bash## Install Hadoop 2 using PDSH/PDCP where possible.## Command can be interactive or file-based. This script sets up# a Hadoop 2 cluster with basic configuration. Modify data, log, and PID# directories as desired. Further configure your
What this section says:- 7.1文件的基本权限:r w x (UGO)- 7.2文件的特殊权限:suid sgid sticky和文件扩展权限ACL- 7.3实战:创建一个让root都无法删除的文件- 7.1 文件的基本权限- 7.1.1 权限的作用The following three types of access restrictions can be reached by setting permissions on a file:
Allow
in the Linux system, we often need to modify the file permissions, such as to increase the security of the main group of what, or access rights, this is very common, all we need to understand a few three commands: Chown,chgrp,chmod,umask650)
Phpchown function. The chown () function is used to change the permissions of a specified object. If TRUE or FALSE is returned, the operation fails. Syntax chown (file, owner) defines and uses the chown () function to define and use the chown ()
Recently I plan to study the Linux bare device, so I tested it in linux to create an Oracle 10g Database Based on the bare device. Follow these steps:
I. Partitioning
Partition steps are not mentioned. The hard disk is divided into the following
Linux System Administrator _ basic permissions and ownership-RedhatEnterprise5
Files And Directories are the most important in linux systems. It is often difficult to log on to the system as a root user. Once you use a common user, you will find
Xtrabackup and innobackupex Hot Backup MySQL DataXtrabackup and innobackupex Hot Backup MySQL Data 1. xtrabackup introduction and backup principles Description: Xtrabackup is an open-source software developed by percona. It can quickly back up and
Mycat read/write splitting and Master/Slave Switching
1. Advantages and Disadvantages of database/table sharding and why cannot table sharding become mainstream?Table sharding: it is easy to maintain on a server, similar to Table Partitioning. Its
1. Modify the file user group under LinuxChgrp:change Group, modify the user group to which the file belongs.CHGRP Users Test.logView Ls-l after modification-RWXRWX--- 1 work users 0 June 8 15:46 Test.logIf you want to modify all files and
Customer service through FTP upload files, all files by default is the ROOT user rights, resulting in PHP files can not read and write creation.
It is only possible to set up each file by Chown www:www.
Is there a way to operate through PHP?
In Linux, the CHMOD/chgrp/chown folder permission is set to 1777. This number indicates that all users can create files in this directory, but only the file owner can delete the files.
First, let's take a look at the file attributes,In the shell
Please indicate the source of reprint: http://blog.csdn.net/cywosp/article/details/7439440Note: The following is highlighted in red with excessive information due to the blog editor.
1. Summary
All operations involved in this article are verified
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.