Comment 11 for bug 1000543

Revision history for this message
Stefan Lasiewski (stefanlasiewski) wrote :

@Dude4Linux: A few notes:

- On my system, the root user is also affected by this bug. Your find command doesn't scan root's home directory, but can be easily modified.
- Find can detect certain permissions with the `-perm` flag. No need for pipes, xargs or a second sudo.

This command will list all instances of 'nautilus-actions' where the 'user' does not have 'read' permission:

sudo find /root /home -name 'nautilus-actions' -not -perm /u=r -ls

A similar command utilizing the `-exec` flag can also fix the problem. Something like this should work, but I have not tested this well so be warned:

sudo find /root /home -name 'nautilus-actions' -not -perm /u=r -ls -exec chmod --verbose u+r {} \;