LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deleting user (https://www.linuxquestions.org/questions/linux-newbie-8/deleting-user-610781/)

Raakh 01-03-2008 04:49 AM

Deleting user
 
I have a user but make it wheel user to access root. Now I want to exit this user from wheel i.e. didn't want to delete this user but just to remove from wheel group and to create a new user to make wheel user to access root

thanks & best regards

deepumnit 01-03-2008 04:51 AM

Did not understand.

Nylex 01-03-2008 04:55 AM

I think the OP wants to do two things:

1. Remove a certain user from the wheel group
2. Create another user that has root powers

Is this correct? For the first thing, you'll need to edit /etc/group as root and remove the user from the relevant line (i.e. the one corresponding to the wheel group). For the second, well, why? What's wrong with just using the root account?

Raakh 01-03-2008 12:25 PM

Quote:

Originally Posted by Nylex (Post 3009531)
I think the OP wants to do two things:

1. Remove a certain user from the wheel group
2. Create another user that has root powers

Is this correct? For the first thing, you'll need to edit /etc/group as root and remove the user from the relevant line (i.e. the one corresponding to the wheel group). For the second, well, why? What's wrong with just using the root account?

I edited the /etc/group and removed the wheel user line but still exists. what else I have to do?

thanks for your reply

Nylex 01-03-2008 12:30 PM

What still exists? Did you remove the entire line corresponding to wheel, or just the user's name from that line?

Raakh 01-03-2008 12:57 PM

Quote:

Originally Posted by Nylex (Post 3009531)
I think the OP wants to do two things:

1. Remove a certain user from the wheel group
2. Create another user that has root powers

Is this correct? For the first thing, you'll need to edit /etc/group as root and remove the user from the relevant line (i.e. the one corresponding to the wheel group). For the second, well, why? What's wrong with just using the root account?

I edited the /etc/group and removed the wheel user line but still exists. what else I have to do?

thanks for your reply

lopoetve 01-03-2008 04:57 PM

Quote:

Originally Posted by Raakh (Post 3010067)
I edited the /etc/group and removed the wheel user line but still exists. what else I have to do?

thanks for your reply

what exactly did you erase and what is left of that line?

deepumnit 01-03-2008 07:55 PM

OR, simply give the command:
Code:

userdel username


All times are GMT -5. The time now is 12:09 AM.