Index: [Article Count Order] [Thread]

Date:  Sun, 08 Mar 2009 00:36:25 +1100
From:  Greg Kuhnert <greg.kuhnert (at mark) theanchoragesylvania.com>
Subject:  [coba-e:15223] Re: Ftp tweeaking
To:  Dogsbody <dan (at mark) dogsbody.org>
Cc:  coba-e (at mark) bluequartz.org
Message-Id:  <49B27859.40905 (at mark) theanchoragesylvania.com>
In-Reply-To:  <49B26BAC.3080503 (at mark) dogsbody.org>
References:  <F99EC3D3-0542-4F57-BA4C-6E8B080425A4 (at mark) straszek.dk> <49B26BAC.3080503 (at mark) dogsbody.org>
X-Mail-Count: 15223

Dogsbody wrote:
>> Is it possible to create a user with ftp acces to a site, but only to 
>> on specific folde of the site and the subfolders within this folder?
>>
>> A customer of mine what to have some "outside" people to do some work 
>> on his site, but hi only wants them to se the folder "xx" and 
>> subfolders inside this folder.
>
> Can you not create a standard user and then link the directory on the 
> website with the users home web directory?
>
> cd /home/sites/www.example.com/web
> ln -s ../users/user/web dir
I dont think that one will work... FTP for non-admin users have a 
"default-root" that wont let them get outside their "virtual" root 
environment.

If you want to "keep it simple".... give the user normal non-admin 
privs, and let them edit web content in 
/home/sites/www.sitename.com/users/username/web/

Then: You can either have the main site use the code by including links 
to http://www.sitename.com/~username/ or you can symlink from main site 
to user directory. This will also require a change to be made in 
/etc/httpd/conf/vhosts/sitexx.include to allow symlinks

Hope that helps.

-- 
+---------------------------------------------------------------------+
|   / \   Greg Kuhnert, gkuhnert (at mark) compassnetworks.com.au               |
| <  o  > Compass Networks - Pointing you in the right direction      |
|   \ /   Check out our website for NuOnce module support.            |
+---------------------------------------------------------------------+