Project

General

Profile

Bug #497

Adding a user in GUI fails

Added by Adrian Wontroba almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Nice to have
Assignee:
-
Category:
GUI (new)
Target version:
-
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Adding a user in GUI fails.

From /var/log/messages:

Jul  4 07:24:58 nas freenasr1561: Popen()ing: /usr/sbin/pw useradd "aw1" -h 0 -c "Adrian Wontroba" -u 1000 -g 1000 -s "/usr/local/bin/bash" -d "/mnt/tank/aw1" -m
Jul  4 07:24:58 nas freenasr1561: Command reports pw: mkdir '/home': Read-only file system

This works from a root session if -b /mnt/tank is included:

[root@nas /mnt/tank]# /usr/sbin/pw useradd "aw1" -h 0 -c "Adrian Wontroba" -u 1000 -g 1000 -s "/usr/local/bin/bash" -d "/mnt/tank/aw1" -m -b /mnt/tank
password for user aw1:
[root@nas /mnt/tank]#

History

#1 Updated by Josh Paetzel almost 10 years ago

  • Status changed from Unscreened to Closed

This happens due to a bug in pw on [[FreeBSD]]. We've patched pw, things work properly in BETA3. As a workaround in versions prior to that you can run the following shell command:

# mount -uw / && mkdir /home

Also available in: Atom PDF