Linux / UNIX Tech Support Forum
This is a discussion on Unable to create user within the Getting started tutorials forums, part of the Linux Getting Started category; I am not able to create user in RHEl 5. I have deleted the user ram using the command userdel ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am not able to create user in RHEl 5. I have deleted the user ram using the command userdel -d ram.
It had deleted the directory of ram as well. But today when I tried to create the user ram again, it gives me a message user ram already exists. I have checked cat /etc/passwd | grep ram and cat /etc/shadow | grep ram. I didn't get any entery of ram in these two files. Please let me know the steps so that I will be able to create the user ram again. |
| Sponsored Links | ||
|
|
|
|||
|
May be you should have used userdel -r option while deleting user a/c. Check the /home directory. if a directory with the name of /home/ram still exists there then you will have to delete that also.
any way -- let me know if you find a better solution. also you may use the find command to find any files specifically owned by that user and you could simply change permissions on them or delete them also [ In a test environment, though |
|
|||
|
the option -d does not exist in userdel u should have used
userdel -r ram now try creating the user using hacking way that is opening all the files and adding entries to the file the file u need to edit #/etc/passwd #/etc/shadow #/etc/group #/etc/gshadow and also create users home directory /home/ram and the mailbox also #touch /var/spool/mail/ram |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create new user account in Ubuntu Linux from command line | sweta | Getting started tutorials | 3 | 07-02-2010 12:15 PM |
| How to create multiple user account? | droidwork | Shell scripting | 11 | 23-02-2008 01:35 PM |
| Add normal user / FTP user usein NORMAL user(non-root) | anilvrathod | Shell scripting | 0 | 07-12-2007 06:04 PM |
| how to create super user | click007 | Getting started tutorials | 12 | 28-08-2007 08:14 PM |
| How can i create script for deleting user? | Paul | Shell scripting | 1 | 02-08-2007 10:20 PM |