fedora 14 and proftpd

Associate
Joined
4 Mar 2010
Posts
32
i am running a fedora 14 webserver/game server ect on my home network i have everything working fine except i can not get my user rights correct in proftpd.

i can log in to the server using filezilla but i can not get to my www folder. i have tried several tutorials on how to set the user acces but i still cant seem to get it right.

does anybody have or can write an idiots guide to it, its bizzar i have managed to get the web server mysql apache php, phpmyadmin all working which i would say after reading all the tuts that it is harder than sorting out some rights on a folder but i still can not do it.

i am new ish to linux, i can follow most tutorials and work my way around but i am certainly not an expert.

any help would be greatly appriciated.
 
If you're using Filezilla have you tried just using SFTP instead of FTP? Then (a) it's more secure anyway as traffic is encrypted and (b) you don't have to run ProFTPD at all as you will connect through the SSH daemon. Filezilla client supports SFTP natively, just quick connect to port 22.

What are your actual symptoms? Do you have SELinux enabled? Have you tried using vsftpd instead of ProFTPD?
 
well www belongs to root, no?
My guess is you are logging in as a regular user...
logging into FTP server typically lands you in '~', the home directory of the username you specify at login, you can navigate up but my guess is you won't even be able to access the www directory.

You can either use a terminal and invoke 'su' to manage www folder or login as root, but as said, use sftp and not ftp.

Any better ways ...? I'd be interested to know ... adding user to wheel might work?
 
You can use acls to give access for a user to a folder even if the traditional permissions model would seem to indicate that they should not have access.

But if selinux is enabled you can also run into issues as the web root directory probably has a context related to the httpd daemon set on it and it's content and accessing it via ftpd (even as root) could be an issue unless the context is changed to be a general public access one ...

... hence my original questions ...
 
Last edited:
thansk for the advise, i have not had chance to give any ago yet, but i will try the ssh thing ago.

the www belongs to root, so i set up a user account and made its home folder www but i kept getting deined access to the server, i have fiddled around with settings and the best i got was in to another home directory.

again i am not sure if selinux is installed somthing i will check.

i tried vsftp but got similar problems.
 
thansk for the advise, i have not had chance to give any ago yet, but i will try the ssh thing ago.

the www belongs to root, so i set up a user account and made its home folder www but i kept getting deined access to the server, i have fiddled around with settings and the best i got was in to another home directory.

again i am not sure if selinux is installed somthing i will check.

i tried vsftp but got similar problems.

will never work like that.

user needs to have permissions to access www directory, since it belongs to root, root has access. you can try changing the ownership of the entire directory to your username or as memyselfandi suggested use setacl (google it) to add permissions for your user.
 
Back
Top Bottom