home directory to root directory

home directory to root directory

Post by Carlos Castill » Wed, 16 Sep 1998 04:00:00



How do I change ther root directory of a login account so the user would
see / as a
user home directory when logged in with telnet or ftp??

I have try to change the /etc/passwd in my 5.0.4 the home directory:
/home/user  by  /home/./user
but does not work

Carlos Gmo Castillo

Hermosillo, Sonora, Mexico

 
 
 

home directory to root directory

Post by Jez Roger » Wed, 16 Sep 1998 04:00:00



> How do I change ther root directory of a login account so the user would
> see / as a
> user home directory when logged in with telnet or ftp??

> I have try to change the /etc/passwd in my 5.0.4 the home directory:
> /home/user  by  /home/./user
> but does not work

> Carlos Gmo Castillo

> Hermosillo, Sonora, Mexico

man chroot
--
Jez


http://www.jezznet.force9.co.uk

Hiroshima '45
Chernobyl '86
Windows  '98

 
 
 

home directory to root directory

Post by Richard Howlet » Thu, 17 Sep 1998 04:00:00



> How do I change ther root directory of a login account so the user would
> see / as a
> user home directory when logged in with telnet or ftp??

> I have try to change the /etc/passwd in my 5.0.4 the home directory:
> /home/user  by  /home/./user
> but does not work

Try just a single slash ( / ) in the /etc/passwd file

--
Richard Howlett


 
 
 

home directory to root directory

Post by Jean-Pierre Radle » Thu, 17 Sep 1998 04:00:00


Richard Howlett typed (on 16Sep):
| >
| > How do I change ther root directory of a login account so the user would
| > see / as a
| > user home directory when logged in with telnet or ftp??
| >
| > I have try to change the /etc/passwd in my 5.0.4 the home directory:
| > /home/user  by  /home/./user
| > but does not work
|
| Try just a single slash ( / ) in the /etc/passwd file

The question was not how to change any old user to have / as a home
directory -- which is not a particularly useful idea in the first place.

The question was how to have a real user chroot'd to the ~user
directory, just as the anonymous ftp user is chroot'd to the ~ftp
directory.

I don't think it can be done. And if it *could* be done, then what system
binaries could that user run?

[I rule out the notion of giving that user a restricted shell...]

--