55

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.

Ali Razmdideh
  • 5,710
  • 2
  • 34
  • 51
Private
  • 3,884
  • 9
  • 34
  • 48
  • 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](http://askubuntu.com/a/332449/22949) is the normal way to do this.) – Eliah Kagan Aug 14 '13 at 09: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 '13 at 09:59
  • Yes, there are a few techniques for this. See [How can I get octal file permissions from command line?](http://askubuntu.com/questions/152001/how-can-i-get-octal-file-permissions-from-command-line) – Eliah Kagan Aug 14 '13 at 10:00
  • even more stupid :D haha. thank you very much. I suddenly liked this way much more :) – Private Aug 14 '13 at 10:01

2 Answers2

96

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
Radu Rădeanu
  • 166,822
  • 48
  • 327
  • 400
-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

SUNNETmedia
  • 101
  • 1