ddbf [Solved] Can't add user to group 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 February 17th, 2012, 05:34
zachnap zachnap is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't add user to group wheel

Hello, I'm new to freeBSD. I am trying to add a user to group wheel. I have entered the following code:
Code:
pw user mod username -G wheel
I enter this command and I get no error message, it just goes to a new command line. Then I type:

Code:
groups username
and all I get is username, it does not list wheel as a group for that user.
Reply With Quote
  #2  
Old February 17th, 2012, 07:05
monkeyboy monkeyboy is offline
Junior Member
 
Join Date: Apr 2009
Posts: 82
Thanks: 4
Thanked 10 Times in 10 Posts
Default

looks to me like it is supposed to be:
# pw usermod username -G wheel

but I never use that thing... what's wrong with
# vi /etc/group

you are root when trying, right?

Last edited by phoenix; February 17th, 2012 at 23:11. Reason: Please format your posts!
Reply With Quote
  #3  
Old February 17th, 2012, 07:13
zachnap zachnap is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind... I finally figured-out that my file system was read-only. I had no idea why I was getting this response when trying to use vi and view and other things.

I just used the command:

Code:
mount -u /
and that apparently changes the file system to read-write. Then I modified the user grouplist and added wheel.
Reply With Quote
  #4  
Old February 17th, 2012, 07:14
zachnap zachnap is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by monkeyboy View Post
looks to me like it is supposed to be:

pw usermod username -G wheel

but I never use that thing... what's wrong with

vi /etc/group

you are root when trying, right?
It doesn't matter whether "usermod" or "user mod" - its the same thing.

I couldn't use vi before since the file system was set to read-only. I am root, single-user.

Thanks for the reply though.
Reply With Quote
  #5  
Old February 17th, 2012, 11:10
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,844
Thanks: 48
Thanked 2,060 Times in 1,890 Posts
Default

If you boot in single user mode only the root (/) filesystem is mounted. Read-only.

To get some functionality you need to remember these (you're going to use them often):
Code:
fsck -p         # if you have errors fsck -y might be a better idea
mount -u /      # re-mounts root read-write
mount -t ufs -a # mounts all UFS filesystems
swapon -a       # turns on swap/virtual memory
adjkerntz -i    # adjusts for the timezone
After that the system is in a reasonable state to edit things.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #6  
Old February 17th, 2012, 16:52
zachnap zachnap is offline
Junior Member
 
Join Date: Feb 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
If you boot in single user mode only the root (/) filesystem is mounted. Read-only.

To get some functionality you need to remember these (you're going to use them often):
Code:
fsck -p         # if you have errors fsck -y might be a better idea
mount -u /      # re-mounts root read-write
mount -t ufs -a # mounts all UFS filesystems
swapon -a       # turns on swap/virtual memory
adjkerntz -i    # adjusts for the timezone
After that the system is in a reasonable state to edit things.
Thanks. I don't know what all that stuff means yet but hopefully I will at some point.
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
[Solved] Can't add user to NIS group mallen324 General 7 August 9th, 2011 15:00
Only wheel group can log in with ssh. bryn1u General 8 March 30th, 2011 14:30
[Solved] how user@wheel group check the root's mail f5b General 5 March 8th, 2010 08:33
[Solved] Add yourself to the 'wheel' and 'operators' group afroman10496 General 3 December 27th, 2009 22:43
gnome add user and group permision problem ericturgeon GNOME 2 December 28th, 2008 14:53


All times are GMT +1. The time now is 03:39.


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