How to remove UNIX user and groups


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to remove UNIX user and groups
# 1  
Old 12-08-2006
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  
Old 12-08-2006
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  
Old 12-08-2006
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  
Old 12-08-2006
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  
Old 12-08-2006
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  
Old 12-08-2006
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  
Old 12-08-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Creating user groups that are persistent

Hi, I need to modify the user 'munfai' by adding it into groups bscs, oinstall, dba. I use this command as user root to add the user into the mentioned groups : # usermod -G bscs,oinstall,dba munfai I can thereafter see the id in the groups : # id munfai uid=258(munfai) gid=20(users)... (2 Replies)
Discussion started by: anaigini45
2 Replies

2. UNIX for Advanced & Expert Users

How to get User list from different groups and root?

Hi all, I want to list out users from different group and root, who are roaming in our group or root as a user. how can i list out this users ? (1 Reply)
Discussion started by: kpatel97
1 Replies

3. AIX

Nested user groups

Is there a command to nest a group in another group in AIX. (2 Replies)
Discussion started by: daveisme
2 Replies

4. UNIX for Dummies Questions & Answers

Remove groups of repeating lines

I know uniq exists, but am not sure how to remove repeating lines when they are groups of two different lines repeating themselves, without using sort. I need them to be sorted in the original order, just to remove repeats. cd /media/AUDIO/WAVE/9780743518673/mp3 ~/Desktop/mp3-to-m4b... (1 Reply)
Discussion started by: glev2005
1 Replies

5. Shell Programming and Scripting

Remove matched values and their related groups

For each value in file1 it has to check in file2 and file3. If value matched it has to delete that value and related group value in file2 and file3. In this example it takes A , deletes A and take related group value 1 and deletes E-1,then checks in file3 and deletes K-1.After that it takes D... (7 Replies)
Discussion started by: kanagaraj
7 Replies

6. AIX

user & groups

1 - what is the maximum no: of groups a user can be a part of ? 2 - what is maximum no: of users a group can contain ? (6 Replies)
Discussion started by: senmak
6 Replies

7. Solaris

Setting user groups

Hi......... I'm trying to set a group of users to login to do a required super-user tasks without knowing the super-user passwd. For example...a user popodude logs in as self with passwd..system accepts the password & then automatically asks for the super-user account passwd. My goal is... (1 Reply)
Discussion started by: Remi
1 Replies

8. UNIX for Dummies Questions & Answers

User groups

Hi I have a user zak and 4 groups:- oracle stats data archive I want user zak to be part of the oracle and stats group but not be able to view,list anything in data and archive. Also anyone in the data and archive group should not be able to view,list anything in oracle and stats....... (3 Replies)
Discussion started by: Zak
3 Replies

9. UNIX for Dummies Questions & Answers

Adding user to groups

How do I add a user to a group? And how do I determine the list of groups to add a user? Solaris 10 newbie (1 Reply)
Discussion started by: peteythapitbull
1 Replies

10. UNIX for Dummies Questions & Answers

dynamic user groups

Is it possible to dynamically allocate a new user group to an existing session on Solaris 5.8 I'd like to be able to allow certain users to access a set of scripts for the life of session (preferably there own session not a specific login created for the purpose) by dynamically giving the session... (0 Replies)
Discussion started by: hammer
0 Replies
Login or Register to Ask a Question

Featured Tech Videos