How do I change file and folder permissions in SSH?

Последна промяна: 15.10.2025 09:03

To change permissions in SSH:

  • Set folder permissions to 755:
    find . -type d -exec chmod 755 {} ;
  • Set file permissions to 644:
    find . -type f -exec chmod 644 {} ;

These commands apply permissions to directories and files, respectively, in the current directory and its subdirectories.