Find the answer to your Linux question:
Results 1 to 8 of 8
How do I su - in FreeBSD I am trying to switch to Root but it keeps telling me sorry. What gives? Mike...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058

    su -?


    How do I su - in FreeBSD I am trying to switch to Root but it keeps telling me sorry. What gives?
    Mike
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  2. #2
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    You have to be in the wheel group. In the most Linux distros you're in the wheel group by default.
    Code:
    pw user mod USERNAME -G wheel
    That should fix it.
    Edit: sorry forgot you had to have a username too.. :P

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Quote Originally Posted by nalg0rath
    You have to be in the wheel group. In the most Linux distros you're in the wheel group by default.
    Code:
    pw user mod USERNAME -G wheel
    That should fix it.
    Edit: sorry forgot you had to have a username too.. :P
    Once I do this I will be able to su - or will this give my username root privileges by default (not what I am looking for if the second)
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User nalg0rath's Avatar
    Join Date
    Sep 2004
    Location
    Stockholm
    Posts
    303
    Quote Originally Posted by adrenaline
    [Once I do this I will be able to su - or will this give my username root privileges by default (not what I am looking for if the second)
    No, you will be able to su to root, you don't have root privs.

  6. #5
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Quote Originally Posted by nalg0rath
    Quote Originally Posted by adrenaline
    [Once I do this I will be able to su - or will this give my username root privileges by default (not what I am looking for if the second)
    No, you will be able to su to root, you don't have root privs.
    Thanks alot. That worked great!!
    Mike
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  7. #6
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    you have to be careful when using the '-G' flag for pw(1) usermod... if you don't specify *every* group that the user should be in, his current groups get removed.. i.e. if he was in 'games' and 'disk' and you -G wheel, he will only be in 'wheel'
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  8. #7
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    I edited it in /etc/group or something I think, that worked neat at least...

  9. #8
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I edited it in /etc/group or something I think, that worked neat at least...
    That's what I do. Easier than the command, IMO (as long as you are careful about things).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •