ProFTPd access to /var/www

Bruce Pieterse octoquadza at gmail.com
Tue Oct 18 12:20:49 UTC 2011


On Oct 18, 2011 1:54 PM, "Oliver Marshall" <Oliver.Marshall at g2support.com>
wrote:
>
> YESYESYES!!!!!
>
> Thanks for all the help.
>
> In the end I removed the GADMIN/ProFTPd that I got from the software
centre in Ubuntu. I installed it just using apt-get.
>
> I then made a new user whose home folder was /var/www and chown'd and
chgrp'd that folder so that they were the daddy.
>
> It started working.
>
> Cheers everyone.
>
> Olly
>
>
> --
> G2 Support
> Network Support : Online Backups : Server Management
>
> Web: www.g2support.com
> Twitter: g2support
> Newsletter: www.g2support.com/newsletter
>
>
> -----Original Message-----
> From: ubuntu-users-bounces at lists.ubuntu.com [mailto:
ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Avi Greenbury
> Sent: 18 October 2011 12:41
> To: ubuntu-users at lists.ubuntu.com
> Subject: Re: ProFTPd access to /var/www
>
> Oliver Marshall wrote:
>
> > I'm currently running ProFTPd (using the GADMIN GUI). I gave up trying
> > to create a dedicated user for this party and just used the logon
> > details of the main account on the server.
>
> This is by far the easiest way normally. Create a user whose home
directory is wherever you want to be able to FTP to, and make sure they've
all the permissions on that directory.
>
> useradd -d /var/www/ ftpuser
>
> will create an user called 'ftpuser' with a home directory of /var/www,
you'll then want to make sure they can get in, precisely how you do that
depends on what else needs access to /var/www/, and what sort.
>
>
> > In ProFTPd I've assigned them permissions for the /var/www directory,
> > but that doesn't work. They just get a permission denied when changing
> > folders in their FTP client.
>
> This is probably because you've not turned off the feature that jails
users to their home directory. I know you turn it on with
>
> DefaultRoot ~
>
> I suspect commenting that line out will turn it off, but I've never run
proftpd without that so I'm not sure.
>
> > SCP isn't an option, though I haven't had much more joy with getting
> > WinSCP working either, though I'm told that's a limitation on WinSCP
> > rather than SCP as a whole.
>
> WinSCP is a bit rubbish by many accounts. Most GUI FTP clients will do scp
if you call it 'SFTP'. What is it about scp that makes it not an option?
>
> --
> Avi
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> --
> Network Support
> Online Backups
> Server Management
>
> Tel: 0845 307 3443
> Email: oliver.marshall at g2support.com
> Web: http://www.g2support.com
> Twitter: g2support
> Newsletter: http://www.g2support.com/newsletter
> Mail: 2 Roundhill Road, Brighton, Sussex, BN2 3RF
>
> Have you said something nice about us to a friend or colleague ?  Let us
say thanks. Find out more at www.g2support.com/referral
>
> G2 Support LLP is registered at Mill House, 103 Holmes Avenue, HOVE
> BN3 7LE. Our registered company number is OC316341.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

I know this has been solved but you could also create a symbolic link in the
users home directory that points to /var/www. If they have the right
permissions and assigned to the www-data group or equivalent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20111018/70eae47c/attachment.html>


More information about the ubuntu-users mailing list