-   Ubuntu (
-   -   How do you create a user account from command line??? (

bossdog22 04-18-2006 10:10 AM

How do you create a user account from command line???
I installed Ubuntu from the CD... when the install got to the point where it asked to create a user account it continued to loop over & over & over like the Energizer Bunny (meaning I would enter a username, password, confirm the password and it would take me back to enter a username again)... finally, I just clicked cancel and thought I would be able to login as root and create a regular user account... the problem now is that I cant login as root from the console (it tells me the system administrator can't login from this page or something)... the only access I have is to select to boot in recovery mode from the boot loader, then when it enter my root password its accepted but I don't know how to create a user account from there... all the documentation I've read so far tells you have to create accounts from system>admin>user accounts>etc., but I can't login to the console to do it that way... does anyone know how to get to console using my root account or some other workaround??

librano 04-18-2006 10:42 AM

the command is 'adduser'

in command line type 'man adduser' and u should get all the available options you may use while creating your new user... and how to use the adduser command

hope i helped... and that you get your problem solved...

bossdog22 04-18-2006 11:40 AM

Thanks for the reply librano, I wish I could say the problem was fixed but its not... here's what I get from the command line:

root@ubuntu:~# adduser me
Adding user 'me' ...
Adding new group 'me' (1000).
Adding new user 'me' (1000) with group 'me'.
Creating home directory '/home/me.'
chown 1000:1000 /home/me: Operation not permitted
Cleaning up.
Removing directory '/home/me'
Removing user 'me'.
Removing group 'me'.
groupdel: group me does not exist

Is there anything I can do to make the operation permissable? Or is there some other problem?

librano 04-18-2006 01:06 PM


i am not a linux guru... so maybe i am not right...

try creating the user group first and then the user... do this using 'groupadd' ... see the man docs for groupadd as well...

i say this because it tries to assign the home folder of 'me' to user id 1000 and group id 1000... this is where it fails... and at the end it says 'group me doesnt exist'.. thats my reasoning...

otherwise... if i was you... since you seem to be doing a fresh install just try reisntalling and see if all goes well... there might be a problem with your cd as well... did you check the md5 sums?

i am not an expert when it comes to permissions... i am having some problems of my own with k3b...

anyone else who can help?!


All times are GMT -5. The time now is 08:20 PM.