arundeep singh wrote:
hello all

 i am trying to build a library that include some user
access functions, but those functions make calls to
few system level functions that need root priviliges.
hoe could i do that.

Have you looked at the "seteuid" documentation or the libc manual ? Use the info program to read the section (by using the command info libc "Users and groups" ) ,and especially the section "How Change Persona". You can see it on line at
http://www.gnu.org/software/libc/manual/html_node/Users-and-Groups.html#Users%20and%20Groups


I would suggest you get a copy of the book, Advanced programming in Unix Environment (APUE) by Richard Stevens and read it first.


-- \��/ (oo) +--------------------ooO-- -Ooo---------------------------------+ |Raj Shekhar |My home: | |System Administrator |http://geocities.com/lunatech3007 | |Media Web India |My blog: | |http://www.netphotograph.com|http://lunatech.journalspace.com | +---------------------------------------------------------------+ |__|__| || || ooO Ooo

_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to