LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 08-29-2006, 01:49 PM   #1
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Rep: Reputation: 15
LOST username and password


Hi it may have been asked before but I can not find it.

I have a root server which comes with plesk. AN am a newb but this is to do with security so thought I'd ask here.
I have lost the username and password for my FTP. Is there a way I can get these back by looking through plesk 8 or by using SSH and searching on the linux box it self.

I thought to myself that as I have plesk I'll just make a client and give him a username and password for FTP to the related domain and use that. But when using WinSCP, the responce from the server is "Connection has been unexpectedly closed. Server sent command exit status 1" And the second one is "Cannot initialize SFTP, is the server running an SFTP server?".

When I used my original username and passwords, the ones I lost, I never had any problems.

Any help....?
Thank you.
 
Old 08-29-2006, 01:53 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
If you can't remember a password then simply change it.
 
Old 08-29-2006, 01:56 PM   #3
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ramram29
If you can't remember a password then simply change it.
How do I do that, through Plesk, if so , for which user/client.
Also what about the other issue of cutting me of as soon as I connect.

How do I enable a SFTP server? It must have already been active at some one stage because I had no problems before. I let this guy have SHH access while he came round to tell me how much it would cost to make the server secure, safe from attacks and such like, and since then I havent been able to FTP.

Thanks for replying

Last edited by gloveny; 08-29-2006 at 02:08 PM.
 
Old 08-29-2006, 02:30 PM   #4
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
Quote:
Originally Posted by gloveny
How do I do that, through Plesk, if so , for which user/client.
Also what about the other issue of cutting me of as soon as I connect.

How do I enable a SFTP server? It must have already been active at some one stage because I had no problems before. I let this guy have SHH access while he came round to tell me how much it would cost to make the server secure, safe from attacks and such like, and since then I havent been able to FTP.

Thanks for replying
Make sure the SFTP service is running.
A reboot might start it up automatically for you.
 
Old 08-29-2006, 02:53 PM   #5
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by DotHQ
Make sure the SFTP service is running.
A reboot might start it up automatically for you.

Isnt there a Command that starts it. Im so new to linux and have no reall time to spend learning, (untill I win the lottery)
G
 
Old 08-30-2006, 05:52 AM   #6
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
In all of the suggestions so far we assume you have access to this box and can ssh in and su to root. I reread your posts this morning and that might be a wrong assumption.

IF you can get in as root simply type:
"passwd name_of_winSCP_user"
This will allow you to change the password of the winSCP user. Then you'll be able to use winSCP as you wanted to.

If you cannot log in and switch to root, you need to talk to someone who has access to the box.

If you've lost your root password that presents a whole different issue. We'll hope that is not the case.

Last edited by DotHQ; 08-30-2006 at 05:53 AM.
 
Old 08-31-2006, 04:56 AM   #7
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks DOTHQ. I do have root access and will try that for usernames I know I have. Is there a command to list the usernames. I dont know why I have forgotten these details, Im normally very good but I've hardly used them. So is there a way to list the usernames that should have ftp or sftp accounts/details. Thanks all for your help.
Graham
 
Old 08-31-2006, 05:49 AM   #8
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
To see all the users allowed on your system type:
more /etc/passwd

The users you are looking for should be near the bottom of that file. The ones you see near the top are system ID's that help with running different aspects of your system.

cat /etc/passwd
will also work (it will just jump right to the end of the file)

both commands are showing you the password file. User names are the first item in the line. You'll also see other tidbits about the user such as home dir, default shell etc.
 
Old 09-01-2006, 12:25 PM   #9
gloveny
LQ Newbie
 
Registered: Jul 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks so much DotHq. I will try it out when I get home. Thanks for your help.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I lost my username sublyme718 Linux - Security 2 04-11-2006 08:13 AM
Lost Username/PW for Red Hat jenstepp Red Hat 2 01-04-2006 05:55 PM
Lost username/passwd (Slackware 10.2) PastorFrederick Linux - Newbie 5 12-23-2005 09:15 AM
How to recover a lost username / password for Solaris 7 at gui login screen noitwhiz Solaris / OpenSolaris 2 09-29-2004 12:32 PM
Lost username AND password HuggyBear Linux - General 5 08-18-2003 09:20 AM


All times are GMT -5. The time now is 12:29 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