The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setup of user groups and permissions citygov UNIX for Dummies Questions & Answers 4 03-14-2008 05:04 AM
Setting user groups Remi SUN Solaris 1 05-21-2007 04:11 PM
User groups Zak UNIX for Dummies Questions & Answers 3 05-10-2006 10:54 AM
Adding user to groups peteythapitbull UNIX for Dummies Questions & Answers 1 03-21-2006 10:35 PM
dynamic user groups hammer UNIX for Dummies Questions & Answers 0 10-28-2005 11:02 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-08-2006
duke0001 duke0001 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 131
How to remove UNIX user and groups

I created UNIX groups - oinstall, dba and UNIX user - oracle for the installation of Oracle 10g. But I might did something incorrectly. Oracle user account didn't created properly. How to remove these UNIX groups and user so that I can start over again to create them properly. Thanks.
  #2 (permalink)  
Old 12-08-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
You can use the userdel command, or just fix what's wrong by editing /etc/passwd, /etc/shadow, and /etc/group. What's the problem you are having?
  #3 (permalink)  
Old 12-08-2006
duke0001 duke0001 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 131
System Shock:

I created UNIX user (oracle) and groups (oinstall and dba). Then I created oracle base directory as /u01/app/oracle and /u01/oradata. Then I chown them to oracle:dba and chmod them as 755. Then I want to login as user oracle. I did su - oracle, system told me that No Directory! What is the problem here? Did I miss some steps or something wrong? I tried to delete user and group completely, then re-create them to make it work. Please advise. Thanks.
  #4 (permalink)  
Old 12-08-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,211
yes, you forgot to create/set home directory for the oracle user.

You can edit the appropriate field in /etc/passwd to correct this.
  #5 (permalink)  
Old 12-08-2006
duke0001 duke0001 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 131
I wanted to login as oracle user to set up oracle home directory. Now I even can not login as oracle user. Can I set home directory for oracle user as root user? How to do it? could you tell me more? Thanks.
  #6 (permalink)  
Old 12-08-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
Check in /etc/passwd if oracle has a defined home directory. If not, you can either use usermod to give it a home directory, or edit /etc/passwd. If, say, you made /u01/app/oracle the oracle home directory, then you should see an entry in /etc/passwd like:
Code:
oracle:x:9999:100::/u01/app/oracle:/usr/bin/ksh
If you use the usermod command, the following should do it
Code:
usermod -d  /u01/app/oracle oracle
  #7 (permalink)  
Old 12-08-2006
duke0001 duke0001 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 131
System Shock:

Thanks so much. You are guru. I followed your instruction to make oracle home diretory right. Now I can login as oracle user to do next step. Thanks and Happy Holiday to you and others in this forum.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0