View topic - LookupPrivilegeValue in QNX
LookupPrivilegeValue in QNX
4 posts
• Page 1 of 1
LookupPrivilegeValue in QNX
Hi All,
I need to migrate some requirements from windows to QNX. As per one requirement process have privileges to shutdown,backup,restore entire system and windows code has used LookupPrivilegeValue API for granting privileges. My doubt are,
1. Is there any way in QNX to shutdown entire system using application.
2. Is there any equilivalent for windows specific API LookupPrivilegeValue in QNX.
I need to migrate some requirements from windows to QNX. As per one requirement process have privileges to shutdown,backup,restore entire system and windows code has used LookupPrivilegeValue API for granting privileges. My doubt are,
1. Is there any way in QNX to shutdown entire system using application.
2. Is there any equilivalent for windows specific API LookupPrivilegeValue in QNX.
- anvesh
- Active Member
- Posts: 31
- Joined: Wed Dec 03, 2008 6:57 am
RE: LookupPrivilegeValue in QNX
1. system("shutdown");
2. Check whether the process is root?
2. Check whether the process is root?
- maschoen
- QNX Master
- Posts: 2730
- Joined: Wed Jun 25, 2003 5:18 pm
RE: LookupPrivilegeValue in QNX
Thanks maschoen it worked and system rebooted after using this API.
- garyritu
- Active Member
- Posts: 58
- Joined: Fri May 22, 2009 7:09 am
RE: LookupPrivilegeValue in QNX
Just to be clear, system("shutdown") just runs a shell as in:
# sh shutdown
and shutdown is program that shuts the system down.
# sh shutdown
and shutdown is program that shuts the system down.
- maschoen
- QNX Master
- Posts: 2730
- Joined: Wed Jun 25, 2003 5:18 pm
4 posts
• Page 1 of 1
Return to Realtime and Embedded
Who is online
Users browsing this forum: No registered users and 1 guest