Results 1 to 3 of 3
Hi,
I wrote a program in C that retrieves CPU temperature by accessing a port. This program works fine while logged in as the super user(root) but fails when logged ...
- 08-23-2008 #1
[SOLVED] user program with root privilege
Hi,
I wrote a program in C that retrieves CPU temperature by accessing a port. This program works fine while logged in as the super user(root) but fails when logged in as a user(non-root). My question is, how do I set this program up so that all users can run it?....Gerard
- 08-23-2008 #2
As root, you will have to set the SetUID bit for your application so that is has sufficient rights even if started by ordinary users.
Users and Groups - The GNU C Library
Be careful.
- 08-23-2008 #3
Thanks GNU-Fan...Gerard4143


