cant able to create user
Dear all,
I created one user name called appsuser later i deleted that username by using cmd userdel appuser again i am trying to create same user it showing user already exits, how to delete completely |
users exist in /etc/passwd if the users there, it exists, if not, it doesn't. Note that without the -r option, userdel wouldn't delete the /home/ directory, just the actual user itself.
|
If you used userdel appsuser previously, then the home directory probably still exists.
Use userdel -r appsuser or remove the home directory by hand (as root: rm -rf /home/appsuser). After that try creating the user. see man userdel (and possibly useradd) for details Too slow..... ;) |
Please help me out i deleted some info at /etc/passwd,/et/passwd,
Now i am trying to see users and groups list i am getting error The user database cannot be read. This problem is most likely caused by a mismatch between /etc/passwd and /etc/shadow or /etc/group and /etc/gshadow. The program will exit now. read. |
What is the output of the following 2 commands:
Code:
pwck -rq |
[root@localhost ~]# pwck -rq
no matching password file entry in /etc/passwd delete line 'bhai0:!!:15674:0:99999:7:::'? No pwck: no changes [root@localhost ~]# grpck -r [root@localhost ~]# grpck -r [root@localhost ~]# The above file shows O/P Of pwck -rq and grpck -r ofter run these cmds on terminal |
Quote:
Its unclear what you have done and if this specific user (bhai0) is involved in your previous actions. You can probably fix this specific problem by running (answer Yes if asked): Code:
pwck -q |
Thank very much now its working fine
|
:)
Can you put up the [SOLVED] tag. - above the first post -> Please Mark this thread as solved if you feel a solution has been provided. - -or- - - first post -> Thread Tools -> Mark this thread as solved |
how to change a exiting group name
|
Quote:
|
groupmod -n newname oldname
|
Reinstalling server
Hellouu,
I am having a problem with the new centos 6.5 reintallation. I reinstalled linux server on a old hard drive with the folders /var and /home folders already existing, so, in the hard drive there is an user already called "power" on the home folder, but now I need to use the same username where the group id is 500, how can I add the same username to get everything intact (sub folders). #adduser power??? adduser: user 'power' already exists would I have to do it manually? please help |
All times are GMT -5. The time now is 02:00 PM. |