[arch-general] user management error
magnus at therning.org
Sun Mar 23 02:48:43 EDT 2014
On Mon, Mar 17, 2014 at 06:25:22PM +0000, message wrote:
> A previously existing /home directory was mounted into the file
> system during the installation process; this directory contained
> files in a directory 'a'.
> A user was created from the root user account:
> useradd -M -p [password] -s /bin/bash [username'a']
> After reboot, the system is restarted as root because the user 'a'
> is stated to not exist. The command 'cat /etc/passwd' reveals a
> password 'x', but this is not the password that was entered.
> How to solve this error?
Log in as `root` on your system, then
1. Since you have `/home` on a separate partition, check that it is
# mount | grep home
2. Check the ownership of a's home directory
# ls -lh /home
a's home directory should show up as being owned by a, with the
group being a (unless you've modified /etc/login.defs, but if you
have you already know what the group should be).
3. Check that the user is set up properly
# su <username>
That should let you become your created user.
4. Change the password for a
# passwd a
5. Try to log in as a again.
That's all I can think of at the moment.
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus at therning.org jabber: magnus at therning.org
twitter: magthe http://therning.org/magnus
Perl is another example of filling a tiny, short-term need, and then
being a real problem in the longer term.
-- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the arch-general