Reset File Permissions for Web Viewable Directory (Command Line)

Resetting File Permissions

Log into the hosting server via SSH.

Navigate to the directory that has permissions issue(s)

Run the following commands.

'# user@srv1 httpdocs]# find . -type d -exec chmod 0755 {} \;'
'# user@srv1 httpdocs]# find . -type f -exec chmod 0644 {} \;'

 

  • 0 Users Found This Useful
Was this answer helpful?