Add user after skipping first time setup
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.
system-installation
add a comment |Â
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.
system-installation
1
Note that 16.10 is EOL and you should upgrade soon.
â Melebius
Mar 14 at 11:09
add a comment |Â
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.
system-installation
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
system-installation
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
add a comment |Â
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
add a comment |Â
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
.
add a comment |Â
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
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
add a comment |Â
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
.
add a comment |Â
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
.
add a comment |Â
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
.
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
.
edited Mar 14 at 10:53
answered Mar 14 at 10:30
![](https://i.stack.imgur.com/Lrlbx.jpg?s=32&g=1)
![](https://i.stack.imgur.com/Lrlbx.jpg?s=32&g=1)
pa4080
12.3k52256
12.3k52256
add a comment |Â
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Note that 16.10 is EOL and you should upgrade soon.
â Melebius
Mar 14 at 11:09