This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[HOWTO] Log in a jail using his name
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
[HOWTO] Log in a jail using his name
I find this interesting article: http://blog.valqk.com/archives/FreeBSD- ... nd-20.html
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [HOWTO] Log in a jail using his name
Good working idea!
But better way - create into jail SSH server and log into without nas4free host.
But better way - create into jail SSH server and log into without nas4free host.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: [HOWTO] Log in a jail using his name
Do you mean somethig like this:alexey123 wrote:But better way - create into jail SSH server and log into without nas4free host
extract from : http://www.cyberciti.biz/faq/howto-setu ... th-ezjail/How Do I Login Remotely (Directly) To Jail?
First, login using jexec command. Add the following line to jail /etc/rc.conf:
# echo 'sshd_enable="YES"' >> /etc/rc.conf
Open sshd_config file and update listen parameter to bind to jail IP only. Start OpenSSH server inside the jail:
# /etc/rc.d/sshd start
# sockstat -4
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [HOWTO] Log in a jail using his name
In first, you must go to Services|SSH webgui and add to Extra options ListenAddress <your_nas _ip>

In second create user for jail from nas4free host
System will ask questions, for example:
After edit config need add sshd_enable="YES" to /etc/rc.conf and start server
You can switch user with su, and check whith whoami command

In second create user for jail from nas4free host
Code: Select all
jexec 1 adduserAfter this see for example /var/etc/ssh/sshd_config and edit jail's /etc/ssh/sshd_config with some directives. But minor - under jail your root not have password, I defineUsername:
Full name:
Uid (Leave empty for default):
Login group []: wheel
Login group is wheel. Invite alexey into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]: csh
Home directory []:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: yes
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username :
Password : *****
Full Name :
Uid : 1001
Class :
Groups : wheel
Home :
Home Mode :
Shell : /bin/csh
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added () to the user database.
Add another user? (yes/no): no
Goodbye!
Code: Select all
PermitRootLogin noAfter edit config need add sshd_enable="YES" to /etc/rc.conf and start server
Code: Select all
/etc/rc.d/sshd startHome12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600