*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-13-2003, 12:17 AM
|
#1
|
|
Member
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220
Rep:
|
adding user to wheel group
HI, I installed freebsd 5.0 and I made a mistake at install, well ok I made a lot of mistakes but have sorted thru most of them. One thing I'm having trouble with is how to add my user account to the wheel group so i can become su. I tried /stand/sysinstall but couldn't see a option to edit user accounts only create new ones. Can someone help me out here?
Thanks!
Last edited by tied2; 02-13-2003 at 12:29 AM.
|
|
|
|
02-13-2003, 01:17 AM
|
#2
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Rep:
|
The easiest way in my experience is to simply open /etc/group with vi, nano, or emacs and just add the user to the wheel group like so:
wheel::10:root,username
toodles! 
|
|
|
|
02-13-2003, 01:35 AM
|
#3
|
|
Member
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220
Original Poster
Rep:
|
thanks ! I tryed that but I had done:
wheel:*:1:root:username
a misstake!
thanks again!
|
|
|
|
02-13-2003, 01:49 AM
|
#4
|
|
Member
Registered: Oct 2002
Location: USA, IL
Distribution: Debian/Gentoo/Slack
Posts: 215
Rep:
|
Not a problem, i think I may have made that mistake in the past once as well..hehe..
|
|
|
|
03-12-2003, 12:20 PM
|
#5
|
|
Member
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 824
Rep:
|
or when you add a new user if to be added to any groups besides theirs, you put wheel
|
|
|
|
09-22-2007, 07:55 PM
|
#6
|
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
Quote:
Originally Posted by ferreter
The easiest way in my experience is to simply open /etc/group with vi, nano, or emacs and just add the user to the wheel group like so:
wheel::10:root,username
toodles! 
|
I added this line to /etc/group and that didn't do it. Perhaps there's some other way? Or do i need to remove the other line for my users name?
I am using the dreaded gnome (about to get rid of it) on debian.
|
|
|
|
09-23-2007, 02:28 AM
|
#7
|
|
Senior Member
Registered: Oct 2004
Posts: 1,188
Rep: 
|
You need to logout and then log back in.
|
|
|
|
09-24-2007, 02:14 AM
|
#8
|
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
I logged out of the session after adding that line, and still doesn't work.
I noticed that there is a , instead of a : there on the original post. Is this so or is it a typo?
Last edited by trebek; 09-24-2007 at 02:23 AM.
|
|
|
|
09-24-2007, 08:52 AM
|
#9
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
It needs to look like:
Code:
wheel:*:0:root,user_here
|
|
|
|
09-26-2007, 05:16 AM
|
#10
|
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
Hey, i'm back.
I reinstalled kubuntu and upgraded from dapper to edgy. Amazingly, in edgy, sudo works fine. I not only able to type sudo, but it asks me for the password again, before executing the command, and of course, it asks me again if i close the shell or if i've been idle for a while.
Don't know what's the difference here. I'll have a look at the sudoers and group files in /etc/ to see what i can find.
Thanks a lot guys, i ended up knowing much more than i used to be, so thanks again, you guys rule!
|
|
|
|
09-28-2007, 04:22 AM
|
#11
|
|
LQ Newbie
Registered: Aug 2007
Location: Bangalore, India
Distribution: Debian Etch, CentOS 5, FreeBSD 6.2
Posts: 11
Rep:
|
anomie+phil.d.g works
Hi,
the discussion was about getting su ability in FreeBSD but turned to Kubuntu?
Anyway even I wanted this facility so added my name to wheel line in /etc/group as root and then logged out and logged back as normal user(the user name I added to wheel line). Now I can use the su facility.
Thanks anomie and phil.
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:28 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|