Skip to content

Instantly share code, notes, and snippets.

@Jxck-S
Created January 24, 2020 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jxck-S/3e0222349d52c285278ab9c47b213bea to your computer and use it in GitHub Desktop.
Save Jxck-S/3e0222349d52c285278ab9c47b213bea to your computer and use it in GitHub Desktop.
fix perms
echo '
chmod -R 755 /bin /boot /dev /etc/ /home /lib /lib64 \
/media /mnt /opt /run /sbin /srv /usr /var
chmod -R 777 /initrd.img /vmlinuz
chmod -R 1777 /tmp
chmod -R 555 /sys
chmod -R 555 /proc
chmod -R 700 /root
' > fixpermission
chmod +x fixpermission
./fixpermission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment