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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-19-2012, 12:57 PM
|
#1
|
Member
Registered: Jun 2012
Posts: 54
Rep: 
|
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,
|
|
|
06-19-2012, 01:14 PM
|
#2
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
You just need to reset the password for the user via the command line.
As root:
|
|
|
06-19-2012, 01:15 PM
|
#3
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
this command will work with virtual FTP user?
|
|
|
06-19-2012, 01:22 PM
|
#4
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
|
|
06-19-2012, 01:29 PM
|
#5
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
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?
|
|
|
06-19-2012, 01:37 PM
|
#6
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
|
|
06-19-2012, 01:58 PM
|
#7
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
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,
|
|
|
06-19-2012, 02:02 PM
|
#8
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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/
|
|
|
06-19-2012, 02:09 PM
|
#9
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
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?
|
|
|
06-19-2012, 03:07 PM
|
#10
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Can I get an update on this?
|
|
|
06-19-2012, 03:11 PM
|
#11
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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!
|
|
|
06-19-2012, 03:17 PM
|
#12
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
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...
|
|
|
06-19-2012, 03:25 PM
|
#13
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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?
|
|
|
06-19-2012, 03:33 PM
|
#14
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Sorry it more like I don't know where to start
|
|
|
06-19-2012, 04:43 PM
|
#15
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Can I get an update on this?
|
|
|
All times are GMT -5. The time now is 02:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|