Linux - NewbieThis 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.
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.
I am using Mandrake 8.2 and trying to config proftpd.
From the start I am lost with proftpd, I can't seem to get any user to login to the ftp server either remotely or locally login to proftpd.
I need to find a real basic help doc on its setup, I do not want to do anything fancy, just be able to give one or 2 users ability to ftp files to the /var/www directory..
You mainly want to look at setting up a DefaultRoot entry that looks like:
DefaultRoot /var/www
This will automatically set them in that directory when they login.
You should be aware that if you enable users to use FTP on your machine, and you have ssh installed that they can use that as well (under normal circumstances).
Mine is just an example, you'll actually want to compare it with the documentation on the proftpd.org website and find one to suit your needs.
The standalone however shoudn't be causing you errors, more importantly, you should be able to view those errors in your /var/log/syslog or /var/log/messages file. Look also at your /var/log/proftpd.log file for errors specific to proftpd itself.
You're welcome, and if things don't give that final "crank" to turn the wheels, let me know. I'll be happy to explain things a bit further for you if necessary.
I am having trouble with PAM, in the log file I get an invalid password for the user.
Is this PAM config directing to another file call ftpusers?
#%PAM-1.0
auth required /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required /lib/security/pam_pwdb.so shadow nullok
# This is disabled because anonymous logins will fail otherwise,
# unless you give the 'ftp' user a valid shell, or /bin/false and add
# /bin/false to /etc/shells.
#auth required /lib/security/pam_shells.so
account required /lib/security/pam_pwdb.so
session required /lib/security/pam_pwdb.so
/etc/ftpusers does not exist? That's ok, just odd. You can create it, inside you will need to define which users should not/cannot login via ftp; those such as root and bin should be listed.
As for the pam error, how are you creating your users? I am not that familiar with PAM to troubleshoot with it, however it may be that you need to use pam to add the users to a pam file somewhere. See if you've got man pam, or search www.google.com/linux for more info on PAM to see if you can find out if that's your problem.
I have no ftpusers file BUT I have a ftpaccess file and that seems to control who has access via ftp? I can add a line to it and then the user can ftp to the default directory in the proftpd.conf.
The only thing now is the user can not wite to the directories, I chmod the directories with a 775 and made 775 the value in proftpd.conf
That's a Directory call I believe, look for a section like this:
<Directory /path>
</Directory>
Inside there add:
<Limit WRITE>
AllowAll
</Limit WRITE>
This will allow the users to write in that directory. If you want them to have all rights, you can take away the <Limit WRITE> directives, and just have AllowAll inside the directory brackets, like this:
<Directory /home/username/*>
AllowAll
</Directory>
I have no ftpusers file BUT I have a ftpaccess file and that seems to control who has access via ftp? I can add a line to it and then the user can ftp to the default directory in the proftpd.conf.
The only thing now is the user can not wite to the directories, I chmod the directories with a 775 and made 775 the value in proftpd.conf
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.