‘/usr/bin/myapp’ is a link to ‘/usr/bin/consolehelper’.
When non-root user try to run ‘/usr/bin/myapp’ on command prompt, it shows ‘userhelper must be setuid root‘. But running with ‘sudo /usr/bin/myapp’ it works fine.
While using with GUI, it shows ‘Insufficient rights‘ popup. I tried by changing permissions of related files ‘/etc/security/console.apps/myapp’ and ‘/etc/pam.d/myapp’.
I am getting same popup while opening ‘System->Administration->Users and Groups‘.
Advertisement
Answer
I got the solution! The problem was absence of setuid bit for /usr/sbin/userhelper. I set this using following command:
chmod u+s /usr/sbin/userhelper
This changed the permissions from ‘-rwx–x–x‘ to ‘-rws–x–x‘