[BlueOnyx:10879] Re: FTP default folder
chuck at tetlow.net
Tue Jun 26 10:39:45 PET 2012
Well, if you trust them - its actually a easy thing to do.
Go to the /etc directory and look at the "passwd" file. This is a list of the users configured on the server. Open it to edit with VI or your favorite editor. Find the username you want to set their FTP directory. You'll find it looks something like this:
The fields are 1)Username 2)Password 3)UserID 4)GroupID 5)Comment field 6)Home directory 7)Command shell
The password will always be "x" because the password is stored elsewhere in hashed format.
The comment field in the BX is used to store the user's full name entered when creating the account
And you're looking for the "Home directory" field. It will be set to that user's home directory. Change that field to point to the directory you want them dropped into when they FTP in - something like /home/.sites/90/site11/web (the website directory for that site/domain). Then simply save.
Now each time that user FTPs in - he'll be dropped right into that directory. Mind you - it has to be part of the same site of which he's a user (not a different site where he doesn't have privileges).
Test afterward with that user's login to make sure it works. You'll find that works every time. But you've got to have shell access to the server and know how to edit that text file at the command line.
OH! And you might want to make a copy of that /etc/passwd file somewhere else before starting. That way, if you screw up the editing - you haven't bombed your whole server!!
---------- Original Message -----------
From: Colin Jack <colin at mainline.co.uk>
To: BlueOnyx General Mailing List <blueonyx at mail.blueonyx.it>
Sent: Tue, 26 Jun 2012 13:58:13 +0000
Subject: [BlueOnyx:10876] Re: FTP default folder
> Uploading/updating websites.
> From: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-bounces at mail.blueonyx.it]On Behalf Of Chuck Tetlow
> Sent: 26 June 2012 00:06
> To: BlueOnyx General Mailing List
> Subject: [BlueOnyx:10871] Re: FTP default folder
> I think my first question would be:
> If they're not tech savy enough to be able to navigate to the proper directory - what are you giving them FTP access for?? FTP is powerful enough that they could do some serious damage to a website - deleting, renaming, or overwriting the wrong files.
> If they can't figure out what directory they are in - do you trust them with the site's files? Or do you trust them with the other user's files (like their mbox file)??
> ---------- Original Message -----------
> From: Colin Jack <colin at mainline.co.uk>
> To: BlueOnyx General Mailing List <blueonyx at mail.blueonyx.it>
> Sent: Mon, 25 Jun 2012 21:49:46 +0000
> Subject: [BlueOnyx:10868] Re: FTP default folder
> > I know this, but some programs read /web as web ... in other words not off the root.
> > I just wondered if there was a way to ensure that when the user logs in they are taken to a specific folder by forcing it on the server, regardless. Not all my users are particularly IT savvy, so this would save some frustration;)
> > Colin
> > On 25 Jun 2012, at 18:20, Gerald Waugh wrote:
> > > On 06/25/2012 04:14 AM, Colin Jack wrote:
> > >> Am I able to set the default FTP upload folder for an individual user (rather than the user's home folder).
> > >> If so, where?
> > >>
> > > Users that want to access the website instead of their personal web
> > > need to do "cd /web"
> > >
> > > Some ftp clients allow you to setup the client to access /web
> > >
> > > Gerald
> > > _______________________________________________
> > > Blueonyx mailing list
> > > Blueonyx at mail.blueonyx.it
> > > http://mail.blueonyx.it/mailman/listinfo/blueonyx
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at mail.blueonyx.it
> > http://mail.blueonyx.it/mailman/listinfo/blueonyx
> ------- End of Original Message -------
------- End of Original Message -------
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Blueonyx