LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-10-2004, 01:01 AM   #1
Spyiish
Member
 
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105

Rep: Reputation: 15
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.
 
Old 11-10-2004, 05:34 AM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
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...
 
Old 11-10-2004, 06:12 AM   #3
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
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
 
Old 11-11-2004, 05:08 AM   #4
Spyiish
Member
 
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105

Original Poster
Rep: Reputation: 15
Hmm, how do u know that the anonymous's password is what u have stated? How do you change it?

Cheers,
Spyiish
 
Old 11-11-2004, 07:58 AM   #5
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
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
 
Old 11-13-2004, 09:04 AM   #6
Spyiish
Member
 
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105

Original Poster
Rep: Reputation: 15
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
 
Old 11-13-2004, 10:05 AM   #7
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
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.
 
Old 11-14-2004, 07:02 AM   #8
Spyiish
Member
 
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105

Original Poster
Rep: Reputation: 15
Hmm.. wats the command to change the group?

I know its chown user /folder. But how do I change the group permission?

Cheers
 
Old 11-14-2004, 08:08 AM   #9
H2O-linux
Member
 
Registered: Sep 2004
Location: Second ring of youranus
Distribution: debian testing
Posts: 153

Rep: Reputation: 30
you can click on the files in kde and change this under the tab for permissions.
 
Old 11-14-2004, 08:21 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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.
 
Old 11-14-2004, 08:23 AM   #11
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
Hi Spyiish

To change the ownership permissions on a folder

Code:
chown user:group /folder
Perhaps a more useful command

Code:
man chown
It's all in there!

Cheers,

Steve
 
Old 11-14-2004, 08:01 PM   #12
Spyiish
Member
 
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105

Original Poster
Rep: Reputation: 15
Cheers dood,

Thanks for that.

Slackware is the best distro ever!!!!!!!

Slack all the way!
 
Old 11-15-2004, 01:04 AM   #13
Spyiish
Member
 
Registered: Aug 2004
Location: Australia, Melbourne
Distribution: Slackware 10
Posts: 105

Original Poster
Rep: Reputation: 15
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
 
Old 11-15-2004, 04:35 AM   #14
joroxx
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian, Slackware
Posts: 27

Rep: Reputation: 15
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?
 
Old 11-15-2004, 07:20 PM   #15
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225

Rep: Reputation: 43
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
 
  


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
proftpd (ftp server) Adrian13 Linux - Software 3 10-18-2004 04:22 PM
FTP Server log location for proftpd and pureftpd jon_k Linux - Software 2 08-06-2004 03:21 AM
About Proftpd ftp server config tommyliu Linux - Newbie 2 06-13-2004 11:39 AM
bandwidth control under proftpd ftp server adrianmak Linux - Networking 1 01-02-2003 03:54 PM
Setting up an FTP Server using ProFTPD Torm3nt Linux - Newbie 5 12-11-2002 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:12 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