diff --git a/chmod b/chmod index 108e62cc..ba591609 100755 --- a/chmod +++ b/chmod @@ -49,8 +49,10 @@ if hash setfacl 2> /dev/null; then fi # Fedora Atomic compatibility -if [ -d /var/roothome ]; then - chmod -v a+x /var/roothome +if [ "$(id -u)" == "0" ]; then + if [ -d /var/roothome ]; then + chmod -v a+x /var/roothome + fi fi set +x