How to login to my jail from host itself (normal user)

masayoshi rockstar01 at y7mail.com
Sun Nov 13 02:54:25 UTC 2011


Hi,I am masayoshi.
If you have enough time, please answer my question.

I must adduser Ayumi as normal user.
After adding her in jail, I add her in host.
Then I type the following command:

# ln -s /usr/jails/www/home/ayumi  /home

When she logins, she is in /usr/jails/www/home/ayumi.
But if she uses "cd" command, she can move directory.

I would like to keep her in jail because she is reckless.
I would like to know how to login to my jail as normal user from host itself when login prompt appear.
If possible, could you tell me how to do it?

Thanks in advance.



%uname -r
8.2-RELEASE-p4

%pkg_info | grep ezjail
ezjail-3.1          A framework to easily create, manipulate and run FreeBSD


%ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
    ether 00:19:d1:1e:1c:72
    inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
    inet 192.168.0.20 netmask 0xffffffff broadcast 192.168.0.20
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active

%jls
   JID  IP Address      Hostname                      Path
     1  192.168.0.20    www                           /usr/jails/www

 
---
Inexperienced FreeBSD user: Level 3
masayoshi & Ayumi Kinoshita
http://tinyurl.com/63zg3op


More information about the freebsd-questions mailing list