nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


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.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-09-2007, 04:15 PM
Member
User
 
Join Date: Jul 2007
Location: Hyderabad
OS: Redhat RHEL, Solaris
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
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
  #2 (permalink)  
Old 21-09-2007, 06:42 AM
Junior Member
User
 
Join Date: Sep 2007
Location: Banagalore
OS: RHEL 3 4 5, Suse, Slackware
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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 24-09-2007, 03:01 PM
nix's Avatar
nix nix is offline
Junior Member
User
 
Join Date: Feb 2007
Location: Pune, India
OS: Redhat, Sun Solaris
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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 07-12-2007, 10:46 AM
Junior Member
User
 
Join Date: Dec 2007
OS: Debian
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 01:42 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38