Be a little careful. If the user's home directory is accessible from the web then various dot files in their home directory might become accessible. If you don't trust the users then you might not even want to give them access to what the system thinks of as their home directories.
My preferred solution is to use ncftpd as my ftp server which gives far more configurability than most ftp servers, and should make it easy for you to set the default directory on log in, and access to different directories without messing with the user's home directory in /etc/passwd. Andrew McNaughton On Mon, 28 Jul 2003, Voytek Eymont wrote: > Date: Mon, 28 Jul 2003 12:55:07 > From: Voytek Eymont <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [SLUG] editing passwd: alters home dir location ? or > > If I edit /etc/passwd > > from > user.org.au:x:517:517:user.org.au:/home/user.org.au:/bin/false > to > user.org.au:x:517:517:user.org.au:/home/user.org.au/www:/bin/false > > am I altering the users' root ? or, the location where ftp will log him to > ? > > what I'm trying to do is: > > I have web users, all they need, is to ftp (or, scp) files to their web > server root, they do not need or have shell/telnet/ssh access. > > I now have: > > /home/user1.com.au (owned by root) > /home/user1.com.au/www (owned by user1.com.au) > > ftp login takes user to /home/user1.com.au > > will I cause any probs editing /etc/passwd so > ftp login will take user to /home/user1.com.au/www directly ? > > (hmmm, now that I typed it up, I'm not sure anymore if I should do that, > anyhow) > > (and, thanks to all for the help so far) > > Voytek Eymont > -- No added Sugar. Not tested on animals. May contain traces of Nuts. If irritation occurs, discontinue use. ------------------------------------------------------------------- Andrew McNaughton In Sydney Working on a Product Recommender System [EMAIL PROTECTED] Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug