Re: scp/sftp & CWD
Brought to you by:
xystrus
From: MAL <ma...@ko...> - 2003-07-08 07:17:22
|
Derek Martin wrote: > On Mon, May 19, 2003 at 07:14:12PM +0100, MAL wrote: > >>Hi ppl, >> >>Is there any way to get sftp and/or scp to change to a different >>starting directory on connect. I don't mean from a user's point of >>view.. I know sftp <user@host:/dir> works.. I mean on the server end. > > > rssh will not do this. The obvious answer is to change the home > directories on the server to be the place where you want the users to > log into... I can't imagine any reason you wouldn't want to do that, > since you're obviously limiting their access with rssh, and you want > to make it always change to some directory. Just change their home > dir in the password file. > > If you're using NIS or similar, use sed on the maps to make a local > password file with the home directories fixed so they point where you > want 'em. I cannot change user's home directories, as I have other user specific data stored in them, (programs that create configs that cannot be specified to be elsewhere), but I simply want the user placed in another, empty web directory when they sftp in for the first time. Is there any way to do this with rssh? I don't want to resort to changing rssh, as that would break it's tested stability, but is there no other way? Cheers, MAL |