How to recreate the user account at each startup?

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








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.










share|improve this question



















  • 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














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.










share|improve this question



















  • 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












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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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










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.



enter image description here



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.






share|improve this answer
















  • 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










  • 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











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%2f1002117%2fhow-to-recreate-the-user-account-at-each-startup%23new-answer', 'question_page');

);

Post as a guest






























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.



enter image description here



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.






share|improve this answer
















  • 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










  • 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















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.



enter image description here



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.






share|improve this answer
















  • 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










  • 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













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.



enter image description here



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.






share|improve this answer












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.



enter image description here



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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 1 at 19:21









sudodus

20.5k32668




20.5k32668







  • 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










  • 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




    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






  • 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


















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491