53

Right now, I know that I can change permissions for example with:

sudo chmod 550 directory

I wonder how I can check the actual folder permission.

4
  • Do you specifically need to see the permissions in octal (like 550), or is any format that shows them unambiguously sufficient? (If you don't need them in octal, then Radu Rădeanu's way is the normal way to do this.) Aug 14, 2013 at 9:54
  • is there a way to see them octal ? have you heard about that? right now it displays : lrwxrwxrwx , so it means : read and write for everybody, correct?
    – Private
    Aug 14, 2013 at 9:59
  • Yes, there are a few techniques for this. See How can I get octal file permissions from command line? Aug 14, 2013 at 10:00
  • even more stupid :D haha. thank you very much. I suddenly liked this way much more :)
    – Private
    Aug 14, 2013 at 10:01

2 Answers 2

94

You can use the following command:

ls -l directory

or

stat directory

or, if you want to see only the permissions in numeric (octal) format:

stat -c %a directory
-2

"Destination folder is not writable or does not exists."

on Magento 2.3.1 admin on NGINX Ubuntu 16.04 | AWS Ec2

Solution I Found

cd /var/www/html/pub/media
sudo find . -type d -exec chmod 777 {} \;

add media folder to permissions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.