LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I reset proftpd user password? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-reset-proftpd-user-password-4175412306/)

hiep.pham 06-19-2012 01:57 PM

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,

Kustom42 06-19-2012 02:14 PM

You just need to reset the password for the user via the command line.

As root:

Code:

passwd username

hiep.pham 06-19-2012 02:15 PM

this command will work with virtual FTP user?

Kustom42 06-19-2012 02:22 PM

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.

hiep.pham 06-19-2012 02:29 PM

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?

Kustom42 06-19-2012 02:37 PM

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.

hiep.pham 06-19-2012 02:58 PM

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,

Kustom42 06-19-2012 03:02 PM

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/

hiep.pham 06-19-2012 03:09 PM

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?

hiep.pham 06-19-2012 04:07 PM

Can I get an update on this?

Kustom42 06-19-2012 04:11 PM

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!

hiep.pham 06-19-2012 04:17 PM

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...

Kustom42 06-19-2012 04:25 PM

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?

hiep.pham 06-19-2012 04:33 PM

Sorry it more like I don't know where to start

hiep.pham 06-19-2012 05:43 PM

Can I get an update on this?


All times are GMT -5. The time now is 06:17 PM.