Solved Adding user fails

Hello, I am completely new to FreeBSD and Unix in general. I've been using Windows my entire life and want to learn to use FreeBSD now. I installed 10.1 in VirtualBox and am wanting to add a user, but I receive an error at the end of adding the user:
Code:
pw: mkdir '/home': Read-only file system
adduser: ERROR: there was an error adding user (ahmed).
And then that's the end of it. I am logged in as root, so I thought I had the ability to add users.

I have tried chmod +w /home, but I get an error saying no such file or directory exists.

Thanks in advance.
 
At root prompt...

#adduser

The /home is part of the base file structure of "root".

Each "user" that you add will have a file structure equivalent to the "root" file, with the permission of the "user" created.

#ls -l |more will give you the user:group ownership of the files in each directory.

In the "root" directory, all files will demonstrate root:wheel.
 
First possibility: Your virtual machine still has the FreeBSD installation image in the CD drive and you are booting to that rather than the installed system. In Virtual Box's settings remove the disc from the drive to boot to your newly installed system from the virtual hard disk.

Second possibility: You are selecting single user mode from the boot menu. Instead, select the default multiuser boot (option 1) option at the boot menu.
 
Well, the FreeBSD installation image is not mounted, I made sure of that before booting it. I believe it automatically boots into single user mode, so I will try to boot into multi user mode and report back.
 
Good; one possible issue eliminated! If it's still not working, could you run the command mount and post the output? What partitioning options did you choose when you installed the system?

I also forgot in my last post: Welcome to FreeBSD and to the forums :)
 
Hello again, it works now. By booting into multi user mode, I was able to add a user successfully.

asteriskRoss, sorry I had already tried multi user and it worked, so I did not try out the mount as you said. I used all of the default preset options during installation of FreeBSD. Also thanks for welcoming me, appreciate it.

NewGuy, I see, thanks for the information, I did not know that.

Thanks everyone for the help, appreciate it.
 
Back
Top