Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
|
11-10-2004, 01:01 AM
|
#1
|
Member
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105
Rep:
|
Setting/Configuring Proftpd (FTP Server)
Hi peepz,
I've read all the info on this forum as well as proftpd.org documentations, but I seem to have missing something.
I have uncommented the ftp in the inetd.conf file and have restarted the daemon too. When I tried to access my server locally, it asks for username and password. Because it is an anonymous access, it also asks for password or email address...???!!!
Its a bit weird. Does anyone how do I go about fixing this problem?
Btw, does ~ mean the /home directory? And also, with the ftp folders, is the default in /home/ftp or /var/ftp (it doesnt exist in slackware, you have to create it if it is the default directory for ftp)?
I tried many ways of doing it, but it doesnt seem to work. When I mean many ways, it means that I tried configuring it a different way to that the proftpd.org had.
Also, do i set my ServerType to inetd or standalone? How do I set the default page?
I hope someone wud be able to help me with this.
Cheers,
Spyiish
Last edited by Spyiish; 11-10-2004 at 01:20 AM.
|
|
|
11-10-2004, 05:34 AM
|
#2
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
You should try vsftpd. I worked with ProFTPd for years, and was instantly converted when I tried vsftpd.
It's blazing fast and more secure...
|
|
|
11-10-2004, 06:12 AM
|
#3
|
Member
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244
Rep:
|
Hi this is a copy of my proftpd.conf file it may help you but i also find the documentation a bit cryptic somebody needs to re-write it properly.
This allows you to log in as anonymous with a password of somebody@lala.com (as long as theres an @ sign in it its ok.
The ftp root folder is in /home/ftp and the anonymous users may upload and download files into the /home/ftp/uploads/ directory
~ in ftp's case is /home/ftp.
If a user logs in under his username and password he will be locked to his home directory. /home/user and wont be able to brows elswere.
inetd is running this server which means that inetd will listen on port 21 and when it gets a ftp request it will start the proftp daemon.
Ok dont slam me if this is all messed up but im still probing things and it seems to work for me. documentation is really confusing.
#[Begin Proftpd Config ...]
ServerName "NAME OF SERVER"
ServerType inetd
ServerIdent on " --- SLACKWARE PROFTP LINUX-2.4.26 --- "
DefaultServer on
Port 21
Umask 022
MaxInstances 3 "Cant handle more users!"
User nobody
Group nogroup
DefaultRoot ~
TimeoutStalled 1200
DisplayConnect /home/ftp/welcome.msg
<Anonymous ~ftp>
AnonRequirePassword off
User ftp
Group ftp
RequireValidShell off
UserAlias anonymous ftp
MaxClients 3
AccessGrantMsg "Hello %u you may use the uploads folder for uploads and downloads"
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
<Anonymous ~ftp>
AnonRequirePassword off
User ftp
Group ftp
RequireValidShell off
UserAlias anonymous ftp
AuthAliasOnly on
MaxClients 3
AccessGrantMsg "Hello %u you may use the uploads folder for uploads"
<Directory 1/uploads/>
<Limit STOR CWD>
AllowAll
</Limit>
<Limit READ RMD DELE MKD>
DenyAll
</Limit>
</Directory>
</Anonymous>
also remember to uncomment ftp in /etc/ftpusers else anonymous wont be able to log in.
It is normal for an anonymous user to require a password to log in.
Also dont give up , it will work , after all it is linux.
Cheers
|
|
|
11-11-2004, 05:08 AM
|
#4
|
Member
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105
Original Poster
Rep:
|
Hmm, how do u know that the anonymous's password is what u have stated? How do you change it?
Cheers,
Spyiish
|
|
|
11-11-2004, 07:58 AM
|
#5
|
Member
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244
Rep:
|
Hi
you dont (well thats what i assume) Generally as a rule to log in to any site as an anonymous user you will give the username of
anonymous
and the password required to log into that site will be
some username@some address.whatever
Basically as long as there is an @ sign in the wording the ftp server will allow you to access the ftp site.
This is a general rule and i think that it is probabally in the RFC docs somewhere.
Cheers
|
|
|
11-13-2004, 09:04 AM
|
#6
|
Member
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105
Original Poster
Rep:
|
Hi
I got my FTP running nicely now. Whenever I access my FTP, it will automatically log in for me.
However, in my case, whenever a user want to upload files onto my server, how do I get to ask for username and password? Is there a way to make this happen?
All I want to do is make download available for all users (which is anonymously), and upload for certain users with usernames and passwords (which is non-anonymously).
Can someone tell me how to do this? I've searched everywhere, but nowhere to be found.
Thanks,
Spyiish
|
|
|
11-13-2004, 10:05 AM
|
#7
|
Member
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153
Rep:
|
you may have to change the file permissions to user=ftp group=ftp. As apposed to apache web server you would use user=www group=users.
|
|
|
11-14-2004, 07:02 AM
|
#8
|
Member
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105
Original Poster
Rep:
|
Hmm.. wats the command to change the group?
I know its chown user /folder. But how do I change the group permission?
Cheers
|
|
|
11-14-2004, 08:08 AM
|
#9
|
Member
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153
Rep:
|
you can click on the files in kde and change this under the tab for permissions.
|
|
|
11-14-2004, 08:21 AM
|
#10
|
Senior Member
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145
Rep:
|
chown user:group file
More doubts (see the -R option that will set all inside the directory also), type: man chown
Last edited by gbonvehi; 11-14-2004 at 08:22 AM.
|
|
|
11-14-2004, 08:23 AM
|
#11
|
Member
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
|
Hi Spyiish
To change the ownership permissions on a folder
Code:
chown user:group /folder
Perhaps a more useful command
It's all in there!
Cheers,
Steve
|
|
|
11-14-2004, 08:01 PM
|
#12
|
Member
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105
Original Poster
Rep:
|
Cheers dood,
Thanks for that.
Slackware is the best distro ever!!!!!!!
Slack all the way!
|
|
|
11-15-2004, 01:04 AM
|
#13
|
Member
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105
Original Poster
Rep:
|
Hi all,
im back again.
I changed the folder permission, but I still cant get the login on that particular folder.
You know how whenever I access my ftp server, it will go straight to it, and theres many folders to access to download. What I want is, whenever I click on the folder called Uploads, I want to be able to login with username and password so that I can upload to the server.
I've done all that, but I still cant get it working. Has anyone done this yet?
Thanks,
Spyiish
|
|
|
11-15-2004, 04:35 AM
|
#14
|
LQ Newbie
Registered: Nov 2004
Distribution: Debian, Slackware
Posts: 27
Rep:
|
Quote:
Originally posted by mdarby
You should try vsftpd. I worked with ProFTPd for years, and was instantly converted when I tried vsftpd.
It's blazing fast and more secure...
|
are you using PAM with vsftpd?
|
|
|
11-15-2004, 07:20 PM
|
#15
|
Member
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
|
Quote:
Originally posted by Spyiish
Hi all,
im back again.
I changed the folder permission, but I still cant get the login on that particular folder.
You know how whenever I access my ftp server, it will go straight to it, and theres many folders to access to download. What I want is, whenever I click on the folder called Uploads, I want to be able to login with username and password so that I can upload to the server.
I've done all that, but I still cant get it working. Has anyone done this yet?
Thanks,
Spyiish
|
So am I right in thinking that what you're wanting is to have the download folder available as it currently is, but when someone tries to access the uploads folder, having already signed in the should be prompted for a password?
Cheers,
Steve
|
|
|
All times are GMT -5. The time now is 02:12 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
|
|