How do I change folder permissions?

Linode Staff

I'm looking to change the permissions for a folder. How do I do this?

4 Replies

Linode Staff

You can change folder permissions using the "chmod" command. An example of the command is the following:

chmod 744 /home/my_folder

This example gives read, write, and execute permissions for the user account. This also grants read permissions for the "group" and "global" accounts. Providing the "-R" option to this command would also change the permissions for the folder and all the contents under it.

We also have a guide that can provide further insight regarding this option.

https://www.linode.com/docs/tools-reference/tools/modify-file-permissions-with-chmod/

I was changing file permissions because I was getting error messages right before my drupal installation. As I was changing them I got kicked out of WINSEP, and I can no log into my Linode on Fedora 31. Any suggestions?

@not_so_sunny If you're ever locked out of your Linode, you can always LISH to get back in:

From there you can correct any permissions issues that were causing the connection trouble.

Just in case you need it, you can also use the following guide to reset the root password of your Linode:

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct