![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| create new user in unix | arulkumar | UNIX for Dummies Questions & Answers | 3 | 08-28-2007 09:49 PM |
| create New UNIX User | Asteroid | UNIX for Dummies Questions & Answers | 6 | 07-24-2007 10:49 PM |
| Create Unix User | wenay | Shell Programming and Scripting | 6 | 06-04-2007 11:30 PM |
| Using a C program to create directories in UNIX | aloha_boi | High Level Programming | 3 | 11-13-2005 10:11 PM |
| Other than root user .Normal user is unable to create files | mallesh | UNIX for Advanced & Expert Users | 1 | 06-22-2005 09:18 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to create a new unix user in through a c program
Hi ,
I want to create a new user using c program not with unix adduser command . is it possible to write a cprogram to create a new user account , it should accept username , grouid , group name and all other privilages . i can use system calls inside c program to do this . i will execute it in a super user mode . Many thanks in advance ! Naren |
| Forum Sponsor | ||
|
|
|
|||
|
I'm on HPUX as well. Half the time.
Yes it's trivially possible since it's already been done by HP, but I do not know how. You have a lot of reading and research to do: Richard Stevens 'Advanced Programming in the UNIX Environment' Cooper & More 'HP-UX 11i Internals' What is the reason you can't use existing HP-provided code? |
|
|||
|
Hi Jim ,
Thanks again for your response . I can use Hp-provided code , but my requirement is that , i should br be able to accept user input from stdin and create a user . My client wants a mechanisim where he can create users with his login ( if has given the permission of root ) and not by sys admin or root . anything else let me know ! thanks once again . Narendra |