Linux installation JDK Permission denied and chmod detailed

Source: Internet
Author: User
Tags readable

First, the problem found

When installing Jdk.bin in Linux, I found the problem, error./config.sh:line 103:/home/jdk.bin:permission denied

Modify Permissions: chmod 775/home/jdk.bin


Second, the chmod command detailed

File/directory permission settings command: chmod used to change the access rights of a file or directory


usage 1: Its syntax format is: chmod [who] [opt] [mode] File/directory name
Where who represents an object, is one or a combination of the following letters:
U: Represents the file owner
G: Indicates the same group of users
O: Indicates another user
A: Indicates all users

Opt is representative of the operation and can be:
+: Add a permission
-: Cancel a permission
=: gives the given permission and cancels the original permission

Mode represents the permission:
R: Readable
W: Writable
X: Executable

Add read and Write permissions to the file a.txt for the same group of users: chmod g+rw a.txt


Usage 2: Digital setting method

The digital setting rule is simpler: chmod [mode] file name. Typically three digits: The first number represents the permissions of the file owner, the second number represents the permissions of other users who belong to the same user group as the file owner, and the third number represents the permissions of the other user group. The permissions are divided into three categories:

Read r=4=100
Write w=2=010
Executive x=1=001

Combined with a readable executable rx=5=4+1=101, readable writable rw=6=4+2=110, readable writable executable rwx=7=4+2+1=111, each decimal number represents a user's read and write executable permissions. 774 for binary words is 111 111 100 where 1 represents a permission 0 means no. 111 indicates that the user can read and write to the file, and the corresponding 100 indicates that the file has read-only permissions.

Linux installation JDK Permission denied and chmod detailed

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.