Announcement

Collapse
No announcement yet.

Sun VirtualBox

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by SecretCode View Post
    This command should do the trick:
    Code:
    sudo usermod -G vboxusers yourusername
    Note the capital G.
    Originally posted by ardvark71 View Post
    I just noticed that now I can't log in into anything requiring my password!!
    I suspect it's because usermod is a more dangerous command to use for this. Read carefully the output from man usermod:

    Code:
    -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
        A list of supplementary groups which the user is also a member of. Each group is separated from the next
        by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group
        given with the -g option.
    
        [b]If the user is currently a member of a group which is not listed, the user will be removed from the group.[/b]
        This behaviour can be changed via the -a option, which appends the user to the current supplementary group
        list.
    Note the part I highlighted in bold. The correct command would include the a option as well as the G:
    Code:
    sudo usermod -aG vboxusers [i]yourusername[/i]
    An alternate mechanism is the adduser command. It's probably mentally safer to remember this one, because it works as expected and without any options:

    Code:
    NAME
           adduser, addgroup - add a user or group to the system
    
    SYNOPSIS
           adduser [options] user group
    
       Add an existing user to an existing group
           If called with two non-option arguments, adduser will add an existing user to an existing group.
    Now, we need to get your user account back to normal. Here's what my user account belongs to:

    Code:
    steve@x1:~$ [b]groups[/b]
    steve adm cdrom sudo audio dip video plugdev lpadmin sambashare admin
    If you can obtain root somehow, then you can reconstruct the group membership of your user account.

    Comment


      #17
      I was sure I had copied that from an example on a web page ... yes, the -a option was necessary. Sorry :blush:

      What does groups output for you? For me it's
      Code:
      joe adm dialout cdrom plugdev lpadmin admin sambashare vboxusers
      If nothing else you can boot to a recovery mode console and type
      Code:
      usermod -g [I]yourusername[/I] [I]yourusername[/I]
      usermod -a -G adm,dialout,cdrom,plugdev,lpadmin,admin,sambashare,vboxusers [I]yourusername[/I]
      ... and perhaps somebody else should check my syntax before you go ahead!
      I'd rather be locked out than locked in.

      Comment


        #18
        Originally posted by SecretCode View Post
        What does groups output for you? For me it's
        Code:
        joe adm dialout cdrom plugdev lpadmin admin sambashare vboxusers
        Hi guys...

        It's, ok. SecretCode, no worries, mistakes happen. :-)

        The output of "groups" is:

        Code:
        aaron@aaron:~$ groups
        aaron vboxusers
        Doesn't look very good at all. :-(

        Regards...
        Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
        How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
        PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

        Comment


          #19
          Can you get to recovery mode from GRUB? That should enable you to sort out anything.
          I'd rather be locked out than locked in.

          Comment


            #20
            Originally posted by SecretCode View Post
            Can you get to recovery mode from GRUB? That should enable you to sort out anything.
            Let me give it a shot...
            Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
            How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
            PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

            Comment


              #21
              Hi SecretCode....

              The commands you gave did the trick, it seems to be fixed now! (whew, breathes a sigh of relief) ;-)

              Thank you, guys, for your help! :-)

              Regards...
              Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
              How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
              PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

              Comment


                #22
                Currently, your supplementary group list shows only "virtualbox" because usermod -G removes a user account from all other supplementary groups. You need to manually re-create your group membership.

                First obtain root. Once you do this, then follow SecretCode's suggestion with the two usermod commands.

                Comment


                  #23
                  Originally posted by SteveRiley View Post
                  First obtain root. Once you do this, then follow SecretCode's suggestion with the two usermod commands.
                  Hi Steve...

                  Thank you very much for the information you provided. I did get into recovery mode and executed the commands that SecretCode gave. Everything seems to be working right again. :-)

                  I think we all learned something here tonight, I know I did: Usermod can be dangerous...proceed with utmost caution! :-)

                  Regards...
                  Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
                  How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
                  PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

                  Comment


                    #24
                    Originally posted by ardvark71 View Post
                    I think we all learned something here tonight, I know I did: SecretCode can be dangerous...proceed with utmost caution! :-)
                    I corrected your post
                    I'd rather be locked out than locked in.

                    Comment


                      #25
                      Originally posted by SecretCode View Post
                      I corrected your post
                      Please don't worry, mistakes do happen and I certainly do not hold it against you in any way. I appreciated your help in getting things back to normal. :-) (high five smiley here)

                      For all I know, there may have been times where I gave advice that was incorrect and it messed up something on their system, too. ;-)

                      Regards...
                      Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
                      How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
                      PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

                      Comment


                        #26
                        Originally posted by ardvark71 View Post
                        For all I know, there may have been times where I gave advice that was incorrect and it messed up something on their system, too. ;-)
                        This is one of the few things makes me feel truly guilty...giving someone bad advice that trashes a system.

                        Comment


                          #27
                          Join the club, SR. I've trashed a few myself. No good deed goes unpunished!
                          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                          – John F. Kennedy, February 26, 1962.

                          Comment


                            #28
                            Same here!

                            Comment

                            Working...
                            X