Problem with usermod

Ask questions about Arch Linux ARM. Please search before making a new topic.

Problem with usermod

Postby wolfikk2 » Sat Oct 18, 2014 10:29 pm

Hello, can somebody explain me this problem?
I've created a user with command:

$this->bbcode_second_pass_code('', 'sudo useradd -g xyz -s /sbin/nologin -d /home/xyz xyz')

but when I tried to modify that user like this:

$this->bbcode_second_pass_code('', 'sudo usermod -R /home/xyz xyz')

then bash says:

$this->bbcode_second_pass_code('', 'usermod: user 'xyz' does not exist')
:?: :?: :?: :?:
wolfikk2
 
Posts: 1
Joined: Sat Oct 18, 2014 10:18 pm

Re: Problem with usermod

Postby hp4 » Mon Oct 27, 2014 10:15 am

did you prepare your system for a chroot with the "-R" option? I think if you switch to /home/xyz as the new filesystem-root, you have to install the necessary configuration files in that directory. If the filesystem is empty at this place, the command won't find files like /etc/passwd and therefore will not find the userid.
hp4
 
Posts: 45
Joined: Thu May 30, 2013 12:09 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests