nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Unable to create user

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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-13-2007, 04:15 PM
Junior Member
User
 
Join Date: Jul 2007
Location: Hyderabad
My distro: Redhat RHEL, Solaris
Posts: 29
Rep Power: 0
vaibhav.kanchan is on a distinguished road
Default Unable to create user

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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-21-2007, 06:42 AM
Junior Member
User
 
Join Date: Sep 2007
Location: Banagalore
My distro: RHEL 3 4 5, Suse, Slackware
Posts: 1
Rep Power: 0
mannu is on a distinguished road
Post user account problem - kanchan

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 ]. Add me to your buddy list if you wish to ! I am Emuel Mannadu , RHEL admin currently at hyderabad.
Reply With Quote
  #3 (permalink)  
Old 09-24-2007, 03:01 PM
nix's Avatar
nix nix is offline
Junior Member
User
 
Join Date: Feb 2007
Location: Pune, India
My distro: Redhat
Posts: 5
Rep Power: 0
nix
Default

There is no any -d option for userdel. Try userdel -r username. -r option removes the user from system with home directory.
Reply With Quote
  #4 (permalink)  
Old 12-07-2007, 10:46 AM
Junior Member
User
 
Join Date: Dec 2007
My distro: Debian
Posts: 12
Rep Power: 0
virendra is on a distinguished road
Default

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
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 06:10 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36