Solved /home not found

I have just finished installing a new image of FreeBSD, and have created the user "person". When I am logged into person, I can use the command:
echo $HOME

and it will display "/home/person". However, no one can create files there. It lets me use:
cd $HOME and cd ~

But it insists that /home is not a file or a directory. My first thought was to use chmod 755 /home however, /home isn't recognized by root either.

:EDIT: Actually, I was wrong. When logged into person, typing cd $HOME results in an error message stating:

Code:
cd: /home/person: No such file or directory
 
Last edited by a moderator:
but it insists that /home is not a file or a directory.
When doing a standard install of FreeBSD, /home is a symlink to /usr/home. ls -l / | grep home should show that to be the case:
Code:
[CMD=%]ls -l / | grep home[/CMD]
lrwxr-xr-x    1 root  wheel        8 Jun 11  2015 home -> usr/home
 
I ran ls -l / | grep home and can confirm that my output matches yours.

inside /usr, there is no directory "home". I'm guessing my /usr/home does not exist. Am I correct in this analysis? Is there a way to fix this?

I mean, would making the directory using root work or do I need to take special steps to recreate the home directory for person correctly?
 
If the output is the same as mine, the /home symlink and /usr/home directories do exist. Run pw user show [B]<username>[/B] as the user in question replacing <username> with the user's name and post the output.
 
Odd, did you by chance accidentally delete the user's home directory? You should be able to create/change a user's home directory with the pw(1) command.
pw usermod cody -d /home/cody -m
 
Thanks!!! That command fixed my issue. I remember what happened. I used pw mod instead of passwd by accident. Thanks again!
 
No problem. :) You can mark your thread as solved by clicking "Edit Thread" on the upper right while viewing the thread and choosing "Solved" from the drop down in the box that pops up.
 
Back
Top