![]() |
|
#1
|
|||
|
|||
linux system callshi everyone...
i'm new in this forum & i want some help, i've a project from my lecturer about making a program to create a new user, new password, delete password, create group name & password. my Question is what system calls can accomplish these tasks,or where can i find help thnx....... |
|
#2
|
||||
|
||||
|
Quote:
Hi emmie. These will definitely have to be system calls. Here are some man pages that you can look through: Code:
The passwd command can be used to set both group passwords and user passwords. HTH, darrin |
|
#3
|
|||
|
|||
|
hi dsmith
i was so busy with another projects than to follow up the linux project,now my question is there any header files i 've to include while using this commands or just i refer them in my code. thnx in advance. |
|
#4
|
||||
|
||||
|
Quote:
These all need to be called as system calls. I don't believe that any of these can be called as a C function call because they involve passwords and potentially different ways of doing things in different *nixes. What you need to do is use the system command along with the sprintf command. Example: CPP / C++ / C Code:
That's untested, but should give you the idea. HTH, d |
|
#5
|
|||
|
|||
|
hi dsmith,
thank u very much for u'r help. i really appreciate that. i've tried out u'r idea with some modification & it works fine. u should add the path of the info u wanna change before writing the line code that would make this change; like "/usr/sbin/ userdel -r %s"............ i'm sorry for being late in reply,but i was very busy doing this project beside 2 other projects........... thnax again. |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to boot Linux in text mode with GRUB Loader | JdS | Computer Software Forum - Linux | 8 | 11-Jul-2006 05:41 |
| Mozilla Thunderbird | dsmith | Computer Software Forum - Linux | 9 | 01-Mar-2005 12:56 |
| Linux Font Improvement Mini-howto | dsmith | Computer Software Forum - Linux | 1 | 20-Feb-2005 07:37 |
| Changing monitors on a Linux machine | JdS | Computer Software Forum - Linux | 10 | 23-Dec-2004 10:49 |
| Linux Kernel Upgrade Mini Howto | dsmith | Computer Software Forum - Linux | 3 | 05-Apr-2004 23:10 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The