The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
root privileges madmat UNIX for Dummies Questions & Answers 4 04-16-2008 06:00 AM
How to find the time a filesystem was mounted without using root privileges neuralninja UNIX for Advanced & Expert Users 1 04-07-2008 07:07 AM
How to find the time a filesystem was mounted without using root privileges neuralninja Filesystems, Disks and Memory 1 04-04-2008 01:38 PM
sshd (openssh) on SunOS without root privileges sayeo SUN Solaris 10 03-14-2008 10:12 AM
Root privileges &Sudoer blue_7 UNIX for Dummies Questions & Answers 2 06-09-2004 04:05 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-14-2005
sumsin sumsin is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 25
root privileges

Hi

I have make a program that needs root privleges but any user can try to run it, so what I want it is, when any user tries( other than root ) to run the program, an input prompt would open to enter root password ( if user knows ) and program will run ( otherwise exit ), and after completing the task the user returns in its originol state.

So how should I manage it in C or C++.

Plz Help.

thanks & regards.
 

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0