LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-10-2005, 11:28 AM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 668
Blog Entries: 7

Rep: Reputation: 31
create hashed passwords in PHP ?


Hi Iam writing a script that allows to add users through a php webinterface.........anyhow everything went fine untill I had to proved the -p argument for the useradd command.........it must be hashed right ???
So I tried crypt and md5 in PHP to create the hashed password but nothing worked........I even tried using the "openssl passwd -crypt" through shell_exec() but it did not work either.........

In short is it possible to hash the password outside the linux box and then provide it ?????????
Any comments ??
 
Old 11-12-2005, 07:45 AM   #2
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 668
Blog Entries: 7

Original Poster
Rep: Reputation: 31
Ive solved this one if and the solution is in http://www.linuxquestions.org/questi...hreadid=381809
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
smbpasswd won't create new passwords demerson3 Linux - Networking 0 02-13-2005 08:02 PM
php & shadow passwords rblampain Linux - Security 7 12-17-2004 10:55 PM
create "shadow" passwords benjalien Linux - Security 3 11-16-2004 05:27 PM
PHP Adding Passwords to connection line Chijtska Programming 2 03-18-2002 09:38 PM


All times are GMT -5. The time now is 08:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration