LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2008, 06:36 AM   #1
ppcw
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Restoring usernames & passwords to a protected directory under Debian & Plesk CP


Hi

I have a Debian Sarge 3.1 server , don't know if its the right place to ask here but here you go.

The HDD crashed a week ago.

I had some password protected directory with 100+ users that had access to that folder with a username and a password.

Somehow, I've managed to save that file that contains the usernames and passwords , can't remember where I took it from then but I've used WinSCP to browse the server.

Now I got the file , the server is back with the same structure but I don't know where to put the file back so the users can keep their old usernames and passwords.

Any tips ?

By the way , to protect that directory , I did that from Plesk Control Panel , and the users and passwords have been added from the same control panel
 
Old 02-16-2008, 03:19 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,274

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Were these login accounts and passwords? On Linux systems, accounts are defined in /etc/passwd and the password hashes are stored in /etc/shadow (and you really need to read "man 5 passwd" and "man 5 shadow" before attempting to midfy either of these files directly). Plaintext passwords are not stored anywhere on the system. If you have a plaintext password you can generate the password hash using the "openssl passwd" command.

Again, this assumes that these users and regular Unix system users. However your message is really vague on this point (how were these users logging in? Did they have to enter a separate password to access the protected directory?). I know zero about Plesk so you probably ought to consult its documentation to figure out exactly what it configured and how before attempting anything. To be very safe, you probably just want to re-install Plesk and re-create all the users by hand using the same method you used originally.

Last edited by btmiller; 02-16-2008 at 04:13 PM.
 
Old 02-16-2008, 04:11 PM   #3
ppcw
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
There are usernames and passwords in that file that have access only to one folder, no other ftp/ssh access.I'll try to find some hints in Plesk Manual
 
  


Reply

Tags
debian, plesk, sarge


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
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Plesk 7, Urchin 5 & Permissions TCSoul Linux - Newbie 1 04-28-2004 07:25 PM
adduser & usernames with caps towerdev Linux - General 2 01-26-2004 11:31 AM
useradd & dot usernames amigodm Slackware 8 03-19-2003 10:41 AM


All times are GMT -5. The time now is 07:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration