LinuxQuestions.org
Review your favorite Linux distribution.
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 06-19-2012, 12:57 PM   #1
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Rep: Reputation: Disabled
How can I reset proftpd user password?


One of our ftp user is forget his pw and now I try to reset it but no luck. Our FTP server is running proftpd server.

Thanks,
 
Old 06-19-2012, 01:14 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
You just need to reset the password for the user via the command line.

As root:

Code:
passwd username
 
Old 06-19-2012, 01:15 PM   #3
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
this command will work with virtual FTP user?
 
Old 06-19-2012, 01:22 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Most users, including your "virutal ftp user" as you put it, are handled by the Linux OS. Some applications use their own databases but ftp and other low-level apps will usually use the Linux OS to take care of it.

reset the password with the command provided and you will get the desired result.
 
Old 06-19-2012, 01:29 PM   #5
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
when I running that command and this is what I get:

[root@ftp pham]# passwd wemade
passwd: Unknown user name 'wemade'.

Can you tell me how can I find out what virtual FTP users are setup on the server?
 
Old 06-19-2012, 01:37 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
That user doesn't look to be set up on the server at all. Did the user possibly get removed accidentally? That would be the method to reset a proftp users password(I worked for a web host company and did several of these a week for customers). You may need to re-add the user:

Code:
useradd -c 'FTP User Account' -d /path/to/ftp/folder -s /sbin/nologin
Make sure to update the path to the right folder location after the -d option. The -s specifies the shell, in this case nologin which will prevent the user from gaining SSH access but will still allow them to login for FTP.
 
Old 06-19-2012, 01:58 PM   #7
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Ok. I was able to add a new virtual ftp user now this user want to setup that when he send a link (see below) to a third party. All the party can do is download only NO edit delete.

ftp.xxx.com/home/images

Is there possible to do that? if so can you provide me step by step on how to configure on ftp server?

Thanks,
 
Old 06-19-2012, 02:02 PM   #8
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Do you have apache running on the server? If so just configure a virtual host for the directory and turn +Indexes on so that your 3rd party users can see all the files uploaded and can click to download them:

Take a look at the bottom section relating to the vhost. If you have any questions just ask.

http://www.bookofzeus.com/articles/s...ost-in-ubuntu/
 
Old 06-19-2012, 02:09 PM   #9
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
I'm not sure if this is what I'm looking for. When I google and it say something about anonymous user account. Is that ring a bell for you?
 
Old 06-19-2012, 03:07 PM   #10
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Can I get an update on this?
 
Old 06-19-2012, 03:11 PM   #11
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
You can set up anonymous FTP but thats not the easiest solution, esp if the 3rd party trying to get the file is not technically savvy. It's alot easier to tell someone to pull up their IE and go to a link than it is to tell them to install Filezilla and connect via FTP.

PLEASE DON'T BUMP YOUR POST!
 
Old 06-19-2012, 03:17 PM   #12
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
I agree I would rather just give the URL to the third party instead download ftp client. Can you provide me the easier way step by step on how to do that? According to the link above I'm not sure where to start? Please help...
 
Old 06-19-2012, 03:25 PM   #13
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Can't really give you more detailed walk through than already provided. Are you getting hung up on a specific step or are you just not sure where to start?
 
Old 06-19-2012, 03:33 PM   #14
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Sorry it more like I don't know where to start
 
Old 06-19-2012, 04:43 PM   #15
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Can I get an update on this?
 
  


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
[SOLVED] How to recover/reset log on password of user other than root mq15 Linux - Newbie 3 04-22-2012 04:16 AM
How to reset (forgotten) user password? Cartech3 Linux - Newbie 6 02-05-2012 01:31 AM
How to reset FTP user password? anandrhce Linux - General 2 08-27-2010 10:43 PM
domain user under samba must reset the password mianmajidali Linux - Server 1 05-04-2009 08:05 AM
Reset user password via script fluffyvoidbunny SUSE / openSUSE 8 03-10-2006 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 AM.

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