What is 755 permission in Linux

+2 votes

I am going through a demo that asked me to change the file permission to 755. I did it by using this command:

chmod 755 filename

I am new to Linux, I know the binary format of chmod But I am not understanding what does 755 set the permission to. Please explain

Dec 21, 2018 in Linux Administration by slayer
• 29,370 points
277,923 views

2 answers to this question.

0 votes

777 permission on the directory means that everyone has access to read/write/execute (execute on a directory means that you can do an ls of the directory).

755 means read and execute access for everyone and also write access for the owner of the file. When you perform chmod 755 filename command you allow everyone to read and execute the file, the owner is allowed to write to the file as well. So, there should be no permission to everyone else other than the owner to write to the file, 755 permission is required.

Hope this helps you!

To learn more about Linux, it's recommended to join Linux course online today.

Thanks.

answered Dec 21, 2018 by Omkar
• 69,220 points
0 votes
Hi,

File permission 755 means that the directory has the default permissions -rwxr-xr-x (represented in octal notation as 0755).

7=rwx 5=r-x 5=r-x
answered Dec 9, 2020 by MD
• 95,460 points

Related Questions In Linux Administration

0 votes
1 answer

What is the linux command to find Memory and CPU usage in percent for last 30 days?

Try the following: Cat proc/meminfo top top -i less /proc/memin ...READ MORE

answered Oct 14, 2020 in Linux Administration by Kim
2,659 views
0 votes
1 answer

What is Htpasswd in Linux?

Hi@akhtar, htpasswd is used to create and update ...READ MORE

answered Dec 2, 2020 in Linux Administration by MD
• 95,460 points
1,654 views
0 votes
0 answers

What is the equivalent to getch() & getche() in Linux?

I am not able to find the ...READ MORE

Apr 13, 2022 in Linux Administration by Rahul
• 9,680 points
709 views
0 votes
0 answers

what is asm stand for in linux/include/asm

read from howto_add_systemcall "In general, header files for machine ...READ MORE

Apr 25, 2022 in Linux Administration by Edureka
• 13,690 points
892 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,325 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,421 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
912 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,220 points
2,793 views
0 votes
1 answer

What is absolute path in Ubuntu?

An absolute path is a path to ...READ MORE

answered Feb 9, 2019 in Linux Administration by Omkar
• 69,220 points
1,505 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP