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 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.
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?).
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
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.
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!
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.