|
-
June 21st, 2001, 11:22 PM
#1
command line 'passwd' command
Hi..
what I need to do is this: change a user's password from a C program.
I am thinking on the lines of using the system() call to call this command, as I have used the same to create new users(system(useradd....))
the problem is the "passwd" command is interactive..is there any way I can specify the password(or output of
crypt(password,salt)) and remove the interactivity?
Gnome has the change password option..so I think there should be a way...
Thanks in advance!
ps. The "useradd" command was also interactive,but it had a -p option to specify the password (ie, output of crypt(password,salt) )while creating user so that removed the interactivity.
[This message has been edited by sujita (edited 06-21-2001).]
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|