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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create multiple user account? | droidwork | Shell scripting | 11 | 02-23-2008 01:35 PM |
| Add normal user / FTP user usein NORMAL user(non-root) | anilvrathod | Shell scripting | 0 | 12-07-2007 06:04 PM |
| how to create super user | click007 | Getting started tutorials | 12 | 08-28-2007 08:14 PM |
| How can i create script for deleting user? | Paul | Shell scripting | 1 | 08-02-2007 10:20 PM |
| Create new user account in Ubuntu Linux from command line | sweta | Getting started tutorials | 0 | 06-21-2007 01:49 AM |