LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-20-2004, 08:48 PM   #1
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Rep: Reputation: 15
PROFTPD Installation on RH 7.2


I am trying to configure a proftb server to respond to two different type of user. One being Myself as a super user that has access to everything on the hard drive and another user called "guest" that only has access to a particular directory on the server.


I am having one heck of a time trying to set this up. I had the same scenario done with wu-ftp. But I can't seem to get it with proftpd. Any help would be greatly appreciated. Thanks.
 
Old 09-20-2004, 09:12 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
The "super user" account will also need to have access permissions on the local filesystem, generally speaking this is not a very good idea. For the guest setup you can configure use chroot to that directory, and map it to an arbitrary account with minimal priviledge(default anonymous configuration in the sample config file?).
 
Old 09-20-2004, 09:35 PM   #3
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for the reply. But That was way over my head.

"The "super user" account will also need to have access permissions on the local filesystem, "

I have given the "htdocs" folder 775 with kevin:root owner:group. when I FTP in, I still cannot get to in htdocs. I only go to /home/kevin/. I have also changed the "DefaultRoot /htdocs" but no luck. I can't figure out what I doing wrong! I even placed in "RootLogin on" and I still could not get in. Following are some info for the reader:


I have given myself
user "kevin"
group "root"
home directory "/home/kevin"
command interperetor "/bin/bash"
id "500"

I am using the stock proftpd.conf file. I have taken out the anonumous part out because, I donot want a log in as such. I would like to a guest user to go to a directory

ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on

Port 21

Umask 022

MaxInstances 30

User kevin
Group kevin

#DefaultRoot ~

<Directory />
AllowOverwrite on
</Directory>


SHould guest be anonymous?

Last edited by kevinm2; 09-20-2004 at 09:38 PM.
 
Old 09-20-2004, 10:08 PM   #4
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
OK I changed the home directory to kevin to "/" I can now get when I ftp via the browser. Is that safe?

But I cannot use a ftp software to get in. Why?
 
Old 09-20-2004, 10:39 PM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If you want your guest users to login without providing a valid username and password then yeah you should use anonymous. By default the anonymou configure will chroot and chdir the directory you specified in the directive.
So for example with this configuration:
Code:
<Anonymous ~ftp>
 User ftp
 Group ftp
 Useralias anonymous ftp
 MaxClients 5
 <Limit WRITE>
   DenyAll
 </Limit>
</Anonymous>
When the anonymous user logs in the ftp, the root directory in their ftp client will be /home/ftp on the server's filesystem, with the filesystem privege of the local user account "ftp" which it is mapped to.

What the error message on the ftp client?
 
Old 09-20-2004, 11:42 PM   #6
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
No, I do want my user named "guest" to be password authenticated. So in that case you are saying that I should take out the anonymous section correct?


it is bizarre, I just came home from work and I can't get connected to the ftp via browsers from home, but I can get connected from work ( I have MS remote desktop available).

What is going on?

Quote:
What the error message on the ftp client?
Trying to ftp to server using AceFTP client, i get the message. FTP folder error. Make sure you have permission access to that folder. FYI, I can get connected to the server from the office!

What am I doing wrong?
 
Old 09-20-2004, 11:59 PM   #7
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
thats a little bit easier than
create a guest account with its password, add him to his own group say "guests", set the home directory to the directory you only want the account to access(eg /home/guest/), then add something like this to proftpd config
Code:
DefaultRoot /home/guest/ guests
As for the ftp client, are you sure the permissions on the directories you want to access are correct? Can you check the proftpd log file?
 
Old 09-21-2004, 12:17 AM   #8
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Original Poster
Rep: Reputation: 15
Unfortunately, I can't verify the permission right now, but I did set it kevin:root.


And, as I go into my computer remotely at work right now, i can get conneted but not from home.


ps. is there any way I can get a sample proftd.conf that would work with my scenario?
 
  


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: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 11:06 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
locate proftpd.conf after installation mikage14 Linux - Newbie 3 05-03-2004 02:59 AM
proftpd installation problem bingbang Linux - Newbie 8 11-23-2003 01:47 PM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM


All times are GMT -5. The time now is 04:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration