Add user after skipping first time setup

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I recently got my new Dell laptop with Ubuntu pre-installed. However, I accidentally skipped the first time setup, where you usually configure things like timezone and user(s).
So now on boot I only have guest session available. So my question is: can I rerun the first time setup? If not, how can I add a user?



I followed advice of this question (How do I reset a lost administrative password?) and managed to create a user, but I cannot login in DE with it as it does not have home directory and probably something else.



I am using Ubuntu 16.10.










share|improve this question



















  • 1




    Note that 16.10 is EOL and you should upgrade soon.
    – Melebius
    Mar 14 at 11:09














up vote
2
down vote

favorite












I recently got my new Dell laptop with Ubuntu pre-installed. However, I accidentally skipped the first time setup, where you usually configure things like timezone and user(s).
So now on boot I only have guest session available. So my question is: can I rerun the first time setup? If not, how can I add a user?



I followed advice of this question (How do I reset a lost administrative password?) and managed to create a user, but I cannot login in DE with it as it does not have home directory and probably something else.



I am using Ubuntu 16.10.










share|improve this question



















  • 1




    Note that 16.10 is EOL and you should upgrade soon.
    – Melebius
    Mar 14 at 11:09












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I recently got my new Dell laptop with Ubuntu pre-installed. However, I accidentally skipped the first time setup, where you usually configure things like timezone and user(s).
So now on boot I only have guest session available. So my question is: can I rerun the first time setup? If not, how can I add a user?



I followed advice of this question (How do I reset a lost administrative password?) and managed to create a user, but I cannot login in DE with it as it does not have home directory and probably something else.



I am using Ubuntu 16.10.










share|improve this question















I recently got my new Dell laptop with Ubuntu pre-installed. However, I accidentally skipped the first time setup, where you usually configure things like timezone and user(s).
So now on boot I only have guest session available. So my question is: can I rerun the first time setup? If not, how can I add a user?



I followed advice of this question (How do I reset a lost administrative password?) and managed to create a user, but I cannot login in DE with it as it does not have home directory and probably something else.



I am using Ubuntu 16.10.







system-installation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 14 at 10:09

























asked Mar 14 at 9:56









Mikhail

1136




1136







  • 1




    Note that 16.10 is EOL and you should upgrade soon.
    – Melebius
    Mar 14 at 11:09












  • 1




    Note that 16.10 is EOL and you should upgrade soon.
    – Melebius
    Mar 14 at 11:09







1




1




Note that 16.10 is EOL and you should upgrade soon.
– Melebius
Mar 14 at 11:09




Note that 16.10 is EOL and you should upgrade soon.
– Melebius
Mar 14 at 11:09










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










After login as root you should use the command adduser <username>, that will create a new user, home directory for it, etc. Alternatively when the user is already created you can create its home directory manually:



mkdir /home/<username> # Make the user's home directory
cp /etc/skel/* /home/<username>/ # Copy the content of the skeletal dirirectory
chown -R <username>:<username> /home/<username> # Change the ownership


Finally you must add this user to the sudo group, thus it will have administrator's (root's) privileges - you can use either: usermod -a -G sudo <username> or adduser <username> sudo.






share|improve this answer





























    up vote
    0
    down vote













    You could use Ubuntu Live version to boot your laptop, chroot to your system installed on laptop and then add new user.
    - For the first part use this tutorial: https://help.ubuntu.com/community/LiveCdRecovery
    - For the second part look here (add user from command line section): https://help.ubuntu.com/community/AddUsersHowto






    share|improve this answer




















    • Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
      – Mikhail
      Mar 14 at 10:12










    • So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
      – mariaczi
      Mar 14 at 10:19











    • You do not need to do so complicated things while the recovery mode is accessible.
      – pa4080
      Mar 14 at 10:31










    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014825%2fadd-user-after-skipping-first-time-setup%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    After login as root you should use the command adduser <username>, that will create a new user, home directory for it, etc. Alternatively when the user is already created you can create its home directory manually:



    mkdir /home/<username> # Make the user's home directory
    cp /etc/skel/* /home/<username>/ # Copy the content of the skeletal dirirectory
    chown -R <username>:<username> /home/<username> # Change the ownership


    Finally you must add this user to the sudo group, thus it will have administrator's (root's) privileges - you can use either: usermod -a -G sudo <username> or adduser <username> sudo.






    share|improve this answer


























      up vote
      2
      down vote



      accepted










      After login as root you should use the command adduser <username>, that will create a new user, home directory for it, etc. Alternatively when the user is already created you can create its home directory manually:



      mkdir /home/<username> # Make the user's home directory
      cp /etc/skel/* /home/<username>/ # Copy the content of the skeletal dirirectory
      chown -R <username>:<username> /home/<username> # Change the ownership


      Finally you must add this user to the sudo group, thus it will have administrator's (root's) privileges - you can use either: usermod -a -G sudo <username> or adduser <username> sudo.






      share|improve this answer
























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        After login as root you should use the command adduser <username>, that will create a new user, home directory for it, etc. Alternatively when the user is already created you can create its home directory manually:



        mkdir /home/<username> # Make the user's home directory
        cp /etc/skel/* /home/<username>/ # Copy the content of the skeletal dirirectory
        chown -R <username>:<username> /home/<username> # Change the ownership


        Finally you must add this user to the sudo group, thus it will have administrator's (root's) privileges - you can use either: usermod -a -G sudo <username> or adduser <username> sudo.






        share|improve this answer














        After login as root you should use the command adduser <username>, that will create a new user, home directory for it, etc. Alternatively when the user is already created you can create its home directory manually:



        mkdir /home/<username> # Make the user's home directory
        cp /etc/skel/* /home/<username>/ # Copy the content of the skeletal dirirectory
        chown -R <username>:<username> /home/<username> # Change the ownership


        Finally you must add this user to the sudo group, thus it will have administrator's (root's) privileges - you can use either: usermod -a -G sudo <username> or adduser <username> sudo.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 14 at 10:53

























        answered Mar 14 at 10:30









        pa4080

        12.3k52256




        12.3k52256






















            up vote
            0
            down vote













            You could use Ubuntu Live version to boot your laptop, chroot to your system installed on laptop and then add new user.
            - For the first part use this tutorial: https://help.ubuntu.com/community/LiveCdRecovery
            - For the second part look here (add user from command line section): https://help.ubuntu.com/community/AddUsersHowto






            share|improve this answer




















            • Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
              – Mikhail
              Mar 14 at 10:12










            • So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
              – mariaczi
              Mar 14 at 10:19











            • You do not need to do so complicated things while the recovery mode is accessible.
              – pa4080
              Mar 14 at 10:31














            up vote
            0
            down vote













            You could use Ubuntu Live version to boot your laptop, chroot to your system installed on laptop and then add new user.
            - For the first part use this tutorial: https://help.ubuntu.com/community/LiveCdRecovery
            - For the second part look here (add user from command line section): https://help.ubuntu.com/community/AddUsersHowto






            share|improve this answer




















            • Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
              – Mikhail
              Mar 14 at 10:12










            • So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
              – mariaczi
              Mar 14 at 10:19











            • You do not need to do so complicated things while the recovery mode is accessible.
              – pa4080
              Mar 14 at 10:31












            up vote
            0
            down vote










            up vote
            0
            down vote









            You could use Ubuntu Live version to boot your laptop, chroot to your system installed on laptop and then add new user.
            - For the first part use this tutorial: https://help.ubuntu.com/community/LiveCdRecovery
            - For the second part look here (add user from command line section): https://help.ubuntu.com/community/AddUsersHowto






            share|improve this answer












            You could use Ubuntu Live version to boot your laptop, chroot to your system installed on laptop and then add new user.
            - For the first part use this tutorial: https://help.ubuntu.com/community/LiveCdRecovery
            - For the second part look here (add user from command line section): https://help.ubuntu.com/community/AddUsersHowto







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 14 at 10:06









            mariaczi

            31915




            31915











            • Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
              – Mikhail
              Mar 14 at 10:12










            • So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
              – mariaczi
              Mar 14 at 10:19











            • You do not need to do so complicated things while the recovery mode is accessible.
              – pa4080
              Mar 14 at 10:31
















            • Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
              – Mikhail
              Mar 14 at 10:12










            • So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
              – mariaczi
              Mar 14 at 10:19











            • You do not need to do so complicated things while the recovery mode is accessible.
              – pa4080
              Mar 14 at 10:31















            Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
            – Mikhail
            Mar 14 at 10:12




            Thank you for your answer! I managed to add user without livecd already; I can login with it on TTY, but not on login screen. AFAICS, your answer does the same, which I already have.
            – Mikhail
            Mar 14 at 10:12












            So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
            – mariaczi
            Mar 14 at 10:19





            So please check if this new created account have home directory running this command: ls -l /home If not, you can create it using mkdir command and then change the owner of this directory to the new account. Second way is remove and create the account once again. Look on the second link provided by me in my answer. Check the differences between adduser and useradd commands ;) Regards.
            – mariaczi
            Mar 14 at 10:19













            You do not need to do so complicated things while the recovery mode is accessible.
            – pa4080
            Mar 14 at 10:31




            You do not need to do so complicated things while the recovery mode is accessible.
            – pa4080
            Mar 14 at 10:31

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014825%2fadd-user-after-skipping-first-time-setup%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491