Bug 239012

Summary: jexec(8) doesn't change directory into the user's home directory in jail
Product: Documentation Reporter: Yuri Victorovich <yuri>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: chris, fernape, mizhka
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2019-07-06 06:04:38 UTC
When the user set with -U {uid}, jexec properly sets the HOME environment variable, but doesn't chdir into this directory, and runs the command in /.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2019-07-06 06:18:57 UTC
Actually, there is an undocumented argument -l (clean) which does what the subject asks, and which needs to be documented in the man page.
Comment 2 Michael Zhilin freebsd_committer freebsd_triage 2019-08-22 13:49:30 UTC
Hi, yuri!

I see man page contains "-l" parameter according to:
https://svnweb.freebsd.org/base?view=revision&revision=285420

Is it not enough?

Thanks!
Comment 3 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2021-02-16 18:16:11 UTC
^Triage: the related option seems to be documented.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-16 18:44:05 UTC
jexec(8) has -l in 14-CURRENT, but not in 12.2-STABLE.

But this is a minor thing.