On 19 May 2006, at 21:19, jared r r spiegel wrote:

> i made myself a seperate /var/www/htdocs/<sitename> partition and  
> then make individual symlinks from ~<someuser>/public_html ->  
> thatpartition/<someuser>

IIRC I can't write hard links across partitions, and /var and /home  
are on different partitions.

On 19 May 2006, at 21:25, Daniel Ouellet wrote:
> Change your home directory to the /var/www, or may be link from  
> home to var/www, not the reverse.

Unfortunately, it's not just my home directory, it's that of about 80  
users, some of whom have several websites.

On 19 May 2006, at 21:30, Nick Guenther wrote:
> Well all a hardlink is is a second entry in the filesystem's tables
> pointing at the same place on disk. It seems it should work.

Not when the hardlink spans partitions.

On 19 May 2006, at 21:52, Daniel A. Ramaley wrote:
> When a user logs in, what would prevent them from accessing their  
> files
> in /var/www/home/wherever by just using the cd command to change to
> that directory?

Because no users will be getting shell access.  Either they'll be in  
a chrooted FTP environment, or maybe a chrooted scp environment.   
Everyday users won't have shell access.

> Just make sure permissions on whatever they need to access in /var/ 
> www/home/wherever are such that the users can change files and  
> Apache can read files.

The files will be owned by the user in question, as they are at the  
moment in each user's home directory.  However, as has been pointed  
out before, symlinking directories isn't the way forward.

On 19 May 2006, at 21:53, Matthew S Elmore wrote:
> This is how I approached the problem:
>
> Each user had a specified directory they could put files in, /var/ 
> www/users/bob or whatever. I simply set the proper permissions on  
> that directory and did this:
>
> # ln -s /var/www/users/bob /home/bob/public_html

That would work, and I can softlink across partitions.  The only  
downside to this is that we'd have to shut off FTP access and  
restrict users to scp access only, in order to allow them to follow  
the links.  This poses the problem of educating a large number of non- 
technical people, the thought of which makes me shudder (not as much  
as having some script kiddie punch holes a non-chrooted php).   
Turning people over to scp/sftp has the downside of being non- 
chrooted, and ideally we'd liek to chroot as much as possible...

Gaby

--
Junkets for bunterish lickspittles since 1998!
http://www.playr.co.uk/sudoku/
http://weblog.vanhegan.net/

Reply via email to