9f43 Adding user to wheel - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old September 14th, 2012, 14:39
Jayuqo Jayuqo is offline
Junior Member
 
Join Date: Apr 2010
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts
Default Adding user to wheel

Probably a stupid question but I just can't get this to work even after a few google search.

I want to give a user root privileges by adding him to the "wheel" group in /etc/group.
Code:
wheel:*:0:root,myuser
For some unknown reason, the user can't edit/modify anything (always get permission denied). What am I doing wrong?

Thanks
Jay

P.S.: Running FreeBSD 9.0
Reply With Quote
  #2  
Old September 14th, 2012, 15:07
izotov izotov is offline
Member
 
Join Date: Feb 2010
Location: Budapest, Hungary
Posts: 117
Thanks: 7
Thanked 6 Times in 6 Posts
Default

Adding someone to wheel does not mean root privileges. This is just a group (that is the owner group of lots of files and directories).
It still depends on the permissions of the file in question if a member of wheel can open it or not.
Example:
My user is member of wheel but is not able to open a file with owner root:wheel and permissions 700.

An advantage of wheel is that its members may su to root.
Reply With Quote
The Following User Says Thank You to izotov For This Useful Post:
Jayuqo (September 14th, 2012)
  #3  
Old September 14th, 2012, 15:07
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Only root can do this.

# pw groupmod wheel -m myuser
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
Reply

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove user from wheel who was added during install FreeBSD. bryn1u General 11 April 4th, 2012 16:45
[Solved] Can't add user to group wheel zachnap General 5 February 17th, 2012 16:52
adding user ldif to ldap bluethundr Web & Network Services 1 October 29th, 2010 01:54
[Solved] how user@wheel group check the root's mail f5b General 5 March 8th, 2010 08:33
adding user account using pw sneb General 5 August 11th, 2009 12:47


All times are GMT +1. The time now is 07:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0