How to recreate the user account at each startup?
up vote
1
down vote
favorite
I'm configuring some PCs for a school computer lab and what I want to achieve is that every time I boot the PC the script deletes a student user and recreates it to restore all default setting of the machine.
It is possible to achieve this configuration? I have tried it with a script and partial work until I logoff with the teacher user after that I can see student user and log in correctly with all defaults restored. What I want to do is to have the student user at login.
scripts login
 |Â
show 4 more comments
up vote
1
down vote
favorite
I'm configuring some PCs for a school computer lab and what I want to achieve is that every time I boot the PC the script deletes a student user and recreates it to restore all default setting of the machine.
It is possible to achieve this configuration? I have tried it with a script and partial work until I logoff with the teacher user after that I can see student user and log in correctly with all defaults restored. What I want to do is to have the student user at login.
scripts login
4
Use the built-in guest accounts. That's exactly what they're made for.
â Byte Commander
Feb 1 at 16:13
That ^ or get a "reborn" card and do this through hardware.
â Rinzwind
Feb 1 at 16:23
@ByteCommander of course, guest accounts don't exist any more since... what... 17.04? Too bad too.
â heynnema
Feb 1 at 16:51
1
Can be re-enabled though... askubuntu.com/q/915415/367990 I'm a bit surprised this still seems not to be fixed however.
â Byte Commander
Feb 1 at 17:15
1
@ByteCommander - but the guest session is unconfined, which is IMHO, less that ideal. You can follow bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1742912 for updates, but my impression is it will take some time for Ubuntu to configure the guest session. Using the guest session is fine as long as you understand the risks and the fact it it is unconfined.
â Panther
Feb 1 at 17:24
 |Â
show 4 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm configuring some PCs for a school computer lab and what I want to achieve is that every time I boot the PC the script deletes a student user and recreates it to restore all default setting of the machine.
It is possible to achieve this configuration? I have tried it with a script and partial work until I logoff with the teacher user after that I can see student user and log in correctly with all defaults restored. What I want to do is to have the student user at login.
scripts login
I'm configuring some PCs for a school computer lab and what I want to achieve is that every time I boot the PC the script deletes a student user and recreates it to restore all default setting of the machine.
It is possible to achieve this configuration? I have tried it with a script and partial work until I logoff with the teacher user after that I can see student user and log in correctly with all defaults restored. What I want to do is to have the student user at login.
scripts login
scripts login
edited Feb 1 at 20:58
dessert
20k55795
20k55795
asked Feb 1 at 16:11
simbla79
61
61
4
Use the built-in guest accounts. That's exactly what they're made for.
â Byte Commander
Feb 1 at 16:13
That ^ or get a "reborn" card and do this through hardware.
â Rinzwind
Feb 1 at 16:23
@ByteCommander of course, guest accounts don't exist any more since... what... 17.04? Too bad too.
â heynnema
Feb 1 at 16:51
1
Can be re-enabled though... askubuntu.com/q/915415/367990 I'm a bit surprised this still seems not to be fixed however.
â Byte Commander
Feb 1 at 17:15
1
@ByteCommander - but the guest session is unconfined, which is IMHO, less that ideal. You can follow bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1742912 for updates, but my impression is it will take some time for Ubuntu to configure the guest session. Using the guest session is fine as long as you understand the risks and the fact it it is unconfined.
â Panther
Feb 1 at 17:24
 |Â
show 4 more comments
4
Use the built-in guest accounts. That's exactly what they're made for.
â Byte Commander
Feb 1 at 16:13
That ^ or get a "reborn" card and do this through hardware.
â Rinzwind
Feb 1 at 16:23
@ByteCommander of course, guest accounts don't exist any more since... what... 17.04? Too bad too.
â heynnema
Feb 1 at 16:51
1
Can be re-enabled though... askubuntu.com/q/915415/367990 I'm a bit surprised this still seems not to be fixed however.
â Byte Commander
Feb 1 at 17:15
1
@ByteCommander - but the guest session is unconfined, which is IMHO, less that ideal. You can follow bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1742912 for updates, but my impression is it will take some time for Ubuntu to configure the guest session. Using the guest session is fine as long as you understand the risks and the fact it it is unconfined.
â Panther
Feb 1 at 17:24
4
4
Use the built-in guest accounts. That's exactly what they're made for.
â Byte Commander
Feb 1 at 16:13
Use the built-in guest accounts. That's exactly what they're made for.
â Byte Commander
Feb 1 at 16:13
That ^ or get a "reborn" card and do this through hardware.
â Rinzwind
Feb 1 at 16:23
That ^ or get a "reborn" card and do this through hardware.
â Rinzwind
Feb 1 at 16:23
@ByteCommander of course, guest accounts don't exist any more since... what... 17.04? Too bad too.
â heynnema
Feb 1 at 16:51
@ByteCommander of course, guest accounts don't exist any more since... what... 17.04? Too bad too.
â heynnema
Feb 1 at 16:51
1
1
Can be re-enabled though... askubuntu.com/q/915415/367990 I'm a bit surprised this still seems not to be fixed however.
â Byte Commander
Feb 1 at 17:15
Can be re-enabled though... askubuntu.com/q/915415/367990 I'm a bit surprised this still seems not to be fixed however.
â Byte Commander
Feb 1 at 17:15
1
1
@ByteCommander - but the guest session is unconfined, which is IMHO, less that ideal. You can follow bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1742912 for updates, but my impression is it will take some time for Ubuntu to configure the guest session. Using the guest session is fine as long as you understand the risks and the fact it it is unconfined.
â Panther
Feb 1 at 17:24
@ByteCommander - but the guest session is unconfined, which is IMHO, less that ideal. You can follow bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1742912 for updates, but my impression is it will take some time for Ubuntu to configure the guest session. Using the guest session is fine as long as you understand the risks and the fact it it is unconfined.
â Panther
Feb 1 at 17:24
 |Â
show 4 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
Guest session in Ubuntu 16.04 LTS
Install Ubuntu 16.04 LTS from the first point release, 16.04.1. It will stay with the xenial kernel series, now at 4.4.0-112, and will be supported until April 2021. You find the iso file and md5sum at the following link,
old-releases.ubuntu.com/releases/xenial
There is a working guest session in this version. It is true that it is not as safe as a confined session, but I think it can be good enough for this purpose.
The guest session is temporary. A new guest session is created every time someone logs in to it.
Live Ubuntu
A simple alternative is a live Ubuntu system (typically booted from a DVD disk or USB pendrive). It can be installed into an internal drive, if that would be best, for example with mkusb.
A live system (live-only, not persistent live) will be reset to the original state after reboot or shutdown.
1
Live Ubuntu can be run from the hard drive usinggrml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescueboot
â user68186
Feb 1 at 19:33
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
2
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Guest session in Ubuntu 16.04 LTS
Install Ubuntu 16.04 LTS from the first point release, 16.04.1. It will stay with the xenial kernel series, now at 4.4.0-112, and will be supported until April 2021. You find the iso file and md5sum at the following link,
old-releases.ubuntu.com/releases/xenial
There is a working guest session in this version. It is true that it is not as safe as a confined session, but I think it can be good enough for this purpose.
The guest session is temporary. A new guest session is created every time someone logs in to it.
Live Ubuntu
A simple alternative is a live Ubuntu system (typically booted from a DVD disk or USB pendrive). It can be installed into an internal drive, if that would be best, for example with mkusb.
A live system (live-only, not persistent live) will be reset to the original state after reboot or shutdown.
1
Live Ubuntu can be run from the hard drive usinggrml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescueboot
â user68186
Feb 1 at 19:33
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
2
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
add a comment |Â
up vote
1
down vote
Guest session in Ubuntu 16.04 LTS
Install Ubuntu 16.04 LTS from the first point release, 16.04.1. It will stay with the xenial kernel series, now at 4.4.0-112, and will be supported until April 2021. You find the iso file and md5sum at the following link,
old-releases.ubuntu.com/releases/xenial
There is a working guest session in this version. It is true that it is not as safe as a confined session, but I think it can be good enough for this purpose.
The guest session is temporary. A new guest session is created every time someone logs in to it.
Live Ubuntu
A simple alternative is a live Ubuntu system (typically booted from a DVD disk or USB pendrive). It can be installed into an internal drive, if that would be best, for example with mkusb.
A live system (live-only, not persistent live) will be reset to the original state after reboot or shutdown.
1
Live Ubuntu can be run from the hard drive usinggrml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescueboot
â user68186
Feb 1 at 19:33
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
2
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Guest session in Ubuntu 16.04 LTS
Install Ubuntu 16.04 LTS from the first point release, 16.04.1. It will stay with the xenial kernel series, now at 4.4.0-112, and will be supported until April 2021. You find the iso file and md5sum at the following link,
old-releases.ubuntu.com/releases/xenial
There is a working guest session in this version. It is true that it is not as safe as a confined session, but I think it can be good enough for this purpose.
The guest session is temporary. A new guest session is created every time someone logs in to it.
Live Ubuntu
A simple alternative is a live Ubuntu system (typically booted from a DVD disk or USB pendrive). It can be installed into an internal drive, if that would be best, for example with mkusb.
A live system (live-only, not persistent live) will be reset to the original state after reboot or shutdown.
Guest session in Ubuntu 16.04 LTS
Install Ubuntu 16.04 LTS from the first point release, 16.04.1. It will stay with the xenial kernel series, now at 4.4.0-112, and will be supported until April 2021. You find the iso file and md5sum at the following link,
old-releases.ubuntu.com/releases/xenial
There is a working guest session in this version. It is true that it is not as safe as a confined session, but I think it can be good enough for this purpose.
The guest session is temporary. A new guest session is created every time someone logs in to it.
Live Ubuntu
A simple alternative is a live Ubuntu system (typically booted from a DVD disk or USB pendrive). It can be installed into an internal drive, if that would be best, for example with mkusb.
A live system (live-only, not persistent live) will be reset to the original state after reboot or shutdown.
answered Feb 1 at 19:21
sudodus
20.5k32668
20.5k32668
1
Live Ubuntu can be run from the hard drive usinggrml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescueboot
â user68186
Feb 1 at 19:33
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
2
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
add a comment |Â
1
Live Ubuntu can be run from the hard drive usinggrml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescueboot
â user68186
Feb 1 at 19:33
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
2
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
1
1
Live Ubuntu can be run from the hard drive using
grml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescuebootâ user68186
Feb 1 at 19:33
Live Ubuntu can be run from the hard drive using
grml-rescueboot
. See help.ubuntu.com/community/Grub2/ISOBoot#grml-rescuebootâ user68186
Feb 1 at 19:33
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
Also see askubuntu.com/questions/32484/â¦
â user68186
Feb 1 at 19:45
2
2
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
@user68186, Yes there are several ways to boot/run live Ubuntu from the hard disk drive. It is also important for the OP, simbla79, to decide if it should be possible to write files to the drive, and how to get a such a system. (I think these things are easier to fix with the guest session in an installed system.)
â sudodus
Feb 1 at 19:46
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%2f1002117%2fhow-to-recreate-the-user-account-at-each-startup%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
4
Use the built-in guest accounts. That's exactly what they're made for.
â Byte Commander
Feb 1 at 16:13
That ^ or get a "reborn" card and do this through hardware.
â Rinzwind
Feb 1 at 16:23
@ByteCommander of course, guest accounts don't exist any more since... what... 17.04? Too bad too.
â heynnema
Feb 1 at 16:51
1
Can be re-enabled though... askubuntu.com/q/915415/367990 I'm a bit surprised this still seems not to be fixed however.
â Byte Commander
Feb 1 at 17:15
1
@ByteCommander - but the guest session is unconfined, which is IMHO, less that ideal. You can follow bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1742912 for updates, but my impression is it will take some time for Ubuntu to configure the guest session. Using the guest session is fine as long as you understand the risks and the fact it it is unconfined.
â Panther
Feb 1 at 17:24