Solved

chmod -R 775 luton

Posted on 2011-02-18
3
599 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

763 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

8 Experts available now in Live!

Get 1:1 Help Now