I just got CentOS up and running on my Athlon 3000+ machine and after logging as root and trying to create a new user I would go to the system menu and click on "users and groups" and I would sit there waiting for something to come up. After waiting awhile nothing happens. I wouldn't mind using the shell to make a new user but my linux skills aren't that far along yet![]()
Any suggestions? I really don't want to be using root all the time. Maybe I overlooked something...
-
From a shell type in adduser[/B] as root.
this is what i did
Login name for new user []: prol
User ID ('UID') [ defaults to next available ]: (PRESS ENTER)
Initial group [ users ]: (PRESS ENTER)
Additional groups (comma separated) []: wheel,storage,optical,disk,video,audio,floppy,lp
Home directory [ /home/prol ] (PRESS ENTER)
Shell [ /bin/bash ] (PRESS ENTER)
Expiry date (YYYY-MM-DD) []: (PRESS ENTER)
New account will be created as follows:
---------------------------------------
Login name.......: prol
UID..............: [ Next available ]
Initial group....: users
Additional groups: wheel,storage,optical,disk,video,audio,floppy,lp
Home directory...: /home/prol
Shell............: /bin/bash
Expiry date......: [ Never ]
This is it... if you want to bail out, hit Control-C. Otherwise, press
ENTER to go ahead and make the account.
(PRESS ENTER) -
I'm having a bit of a problem using the useradd command, the syntax is useradd (option) login. I got it to make a user, add a password but I can't log in using it. Just about every other option I try just brings up the menu of available commands. Do I need to create a home for the new user? If I try it just tells me that user exists, very annoying. Maybe I need to make a group first? It doesn't seem to need it though.
/edit Does it want me to add directories after the option? What would be the syntax for that? from the options menu it seems like it just wants the command, option, and user name to edit the stuff. -
Have you try run user and group from a terminal?
you shound be able get command name on the menu shortcut maybe it will give you reason why it not open if you can see error in terminal -
tell me what users you have made till now and post the output of
cat /etc/group -
I got it, I needed to make a group for the user first then add the user to it. Just adding a user in of itself wouldn't work.
Weird thing is Users and Groups under the administration tab wouldn't do a thing when selected, which still had me baffled. Even selecting it under the new user wouldn't work, it'll just ask for the root password and just sit there. So much for using the GUI to add users.
Thanks for the help
users and groups actting weird
Discussion in 'Linux Compatibility and Software' started by Tailic, May 23, 2008.