Solved

chmod -R 775 luton

Posted on 2011-02-18
3
624 Views
Last Modified: 2012-06-21
what will this particular chmod command do?
0
Comment
Question by:aashee
3 Comments
 
LVL 11

Expert Comment

by:rowansmith
ID: 34931191
It will give the file called Luton

Read/Write/Execute Permissions for the owner of the file (First 7)
Read/Write/Execute Permissions for members of the group that owns the file (second 7)
and Read and Execute permissions for everyone else (last 5)
0
 
LVL 12

Expert Comment

by:upanwar
ID: 34931401
It will give the permission suggested by the rowansmith to a file. But if the Luton is a directory then It will give the same permissions to Luton as well as the files and subdirectories which Luton contains.

Read/Write/Execute Permissions for the owner of the file (First 7)
Read/Write/Execute Permissions for members of the group that owns the file (second 7)
and Read and Execute permissions for everyone else (last 5)

4=Read
2=Write
1=Execute
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 34932589
the chmod command changes file / directory permissions. The -R is normally used to set the permissions of sub directories and files within them.

The number 775 is octal presentation of permissions for owner (left most 7), group (middle 7) and others (right most 5)

an octal digit (3 bits) represents the read (left most bit), write (middle bit) and execute / run (right most bit) permissions.

If the bit is set to 1 then the permissions is granted. In your example 775 means:

owner read,write,execute group read,write,execute others read, execute
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now