Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can a C programme be used by a non root user? #616

Open
rwb196884 opened this issue Oct 9, 2024 · 1 comment
Open

Can a C programme be used by a non root user? #616

rwb196884 opened this issue Oct 9, 2024 · 1 comment

Comments

@rwb196884
Copy link

If you try then you get this:

$ ./prog
2024-10-09 20:17:12 initCheckPermitted:
+---------------------------------------------------------+
|Sorry, you don't have permission to run this program.    |
|Try running as root, e.g. precede the command with sudo. |
+---------------------------------------------------------+


Failed to initialise GPIO.
$

As far as I can tell only root can execute the programme unless you

$ sudo chown root prog
$ sudo chmod u+s prog
@guymcswain
Copy link
Collaborator

Yes, you need root permission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants