[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] ftp home directory



On Tue, 30 Jan 2001, H.P. Stroebel wrote:

> baltimoremd@xxxxxxxxxxxxxxx schrieb:
> > 
> > Of course, one should be able to modify the cobalt cgi file
> > that sets up the value of where the user lands at logon.
> > /etc/passwd ?????
> 
> yes, but it would affect mail delivery, as mail is stored in the user`s
> home directory (mbox or /mail) by default. so this files would be in the
> server`s document root, no good idea.

Would it really?

passwd has entries such as
joe:x:138:100:Joe Smith:/home/sites/site_number/users/joe:/bin/bash

I thought this tells the system that when joe logs on, he is using
bash and starts out in /home/sites/site_number/users/joe

While the /etc/profile sets the mail directory

# /etc/profile
#

HOSTNAME=$( /bin/hostname )
USER=$( id -un )
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

So, it looks to me that you could force the user to land in a different
directory at logon w/o affecting the mail.

If that's the case, one could modify the cgi that creates the
passwd file...but, that's beyond the scope of an appliance operator such
as myself.

thom
././././././././././././././././././././././././././././././././././././././
baltimoremd@xxxxxxxxxxxxxxx             Thom LaCosta K3HRN Webmaster  
                      
http://www.baltimoremd.com/             Baltimore's Home Page 
http://www.baltimorehon.com/            Home of the Baltimore Lexicon
http://www.zerobeat.net                 Home of The QRP Web Ring
                                        and Drake Mail List Pages