LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-03-2007, 11:00 PM   #1
Jacko123
LQ Newbie
 
Registered: Mar 2007
Posts: 13

Rep: Reputation: 0
User's system password


Hi guys,
How do I access system( windows/ linux ) user's password??? After the user has logged in, I want to access user's system password and SET that password to my application's textEdit.

I dont want to modify the password but just access it and SET it appropriately.

Is there any function??? The solution has to be portable...

Thanks
 
Old 06-04-2007, 12:09 AM   #2
vedanu
LQ Newbie
 
Registered: Feb 2007
Location: Bangalore
Distribution: Fedora
Posts: 18

Rep: Reputation: 0
Can any one have the answer i have the same request as the above...
 
Old 06-05-2007, 12:04 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I think we need to know why you want to do this ...
 
Old 06-05-2007, 12:37 AM   #4
vedanu
LQ Newbie
 
Registered: Feb 2007
Location: Bangalore
Distribution: Fedora
Posts: 18

Rep: Reputation: 0
I am encrypting some files in my application and I am using password protected encryption algorithm and the password used to encrypt the file has to be the system password.

So i need the get the system password.
 
Old 06-05-2007, 01:52 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, you'll need to ask the user, because (on Unix anyway), the password is stored encrypted using a one-way/asymmetric system ie it's not supposed to be recoverable.
(The system logs you in by encrypting the user's response and comparing the encrypted version to the stored one)
 
Old 06-05-2007, 09:07 AM   #6
nc3b
Member
 
Registered: Aug 2005
Posts: 330

Rep: Reputation: 32
Note that not only is chrism01 right, his solution is also highly portable! ( )

Last edited by nc3b; 06-05-2007 at 01:28 PM.
 
  


Reply



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
How Do I recover a user's password in SUSE 10.0 gamesfan9000 SUSE / openSUSE 26 01-28-2010 07:53 AM
How to change user's password on initial log in? Micro420 Linux - Newbie 8 11-16-2007 12:30 AM
URGENT: Need to verify user's password in Linux proghrammatically vigosh_j Programming 5 01-26-2005 06:56 AM
Lol I forgot a user's password urzumph Linux - Security 4 03-04-2004 05:00 AM
changing a regular user's password using root Pete Dogg Linux - General 2 11-28-2003 10:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration