Summary: | Creating jail corrupts /etc/passwd | ||
---|---|---|---|
Product: | Base System | Reporter: | hbowden |
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Not A Bug | ||
Severity: | Affects Only Me | CC: | allanjude, freebsd-bugzilla |
Priority: | --- | ||
Version: | 10.1-RELEASE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
hbowden
2015-03-02 17:57:25 UTC
(In reply to hbowden from comment #0) Your shell syntax is wrong If you run setenv D /usr/home/nah/jail in a /bin/sh shell on it's own you get # setenv D /usr/home/nah/jail setenv: not found # The correct syntax would be something like D=/usr/home/nah/jail e.g. # D=/usr/home/nah/jail # echo $D /usr/home/nah/jail # What you did was you didn't have a value for D so you overwrote your existing installation with your make buildworld/installworld/distribution (In reply to hbowden from comment #0) setenv is used for csh, the default root shell So those instructions work if you type them into a default root shell, but when you turned it into a script and changed the shell from csh to sh, without updating the syntax, you never set D, so you ran 'make installworld' and 'make distribution' with a blank DESTDIR, which defaulted to /, overwriting your install. |