LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No guest account available on the login screen
#1
Hi,

I just made a fresh install of Linux Lite 2.0. I kept everything as default, with Linux Lite user's name = linuxlite.
I have tried adding a guest account like it is available in default installation of Ubuntu. After some search I finished by editing the file /usr/share/lightdm/lightdm.conf.d/40-lightdm-webkit-greeter.conf and changed the last line "allow-guest=false" to "allow-guest=true", so that the content of the file is as follows:

[SeatDefaults]
greeter-session=lightdm-webkit-greeter
user-session=xfce
autologin-user=linux
allow-guest=true

I saved the file and restarted the PC. However at the login screen I could not choose the guest account as only the linuxlite account is available for logging in.

How is it possible to have at the login screen the choice between the linuxlite default user account and the guest account?

Thanks.
Reply
#2
Use this - https://www.freecinema2022.gq/manual/install.html#adduser as a guide. Newly created users are limited by default, like guests. You will need to revert the file you changed back to what it was.
Reply
#3
Hi,

Thanks for having taken the time to answer.

Adding a user is not what I am looking for. I could create  e.g. a user account named "visitor", setting that account for autologin without password asking and then see the two accounts on the login screen, but that's not all my purpose :

I am actually looking to give login access, from the login screen, to the guest account that has no home directory under /home and of which all settings are automatically removed after log-out, so that the next user who would be using that guest account would start with a fresh account setting.

Is that possible ?
Reply
#4
(09-03-2014, 07:53 AM)vdquynh link Wrote: I am actually looking to give login access, from the login screen, to the guest account that has no home directory under /home and of which all settings are automatically removed after log-out, so that the next user who would be using that guest account would start with a fresh account setting.

Is that possible ?

I'm not sure, it's not something I have ever tried to do.
Reply
#5
You should be able to accomplish this using the following steps (not actually tried it):
  • Create a regular limited user whose home directory is under /home
  • Create a script that clears everything in the user's home directory
  • Run the script on OS boot (/etc/init.d/...)
  • Run the script on user logout
Reply
#6
Thanks for the hint.
That could be the last resort to do, effectively. I already created a script to re-initialize any user's account.

However I am struggling to understand/googlesearch how to run such a script upon login out for only one user account and not for all user accounts.

Any help would be appreciated.
Reply
#7
(09-05-2014, 03:32 AM)vdquynh link Wrote: Thanks for the hint.
That could be the last resort to do, effectively. I already created a script to re-initialize any user's account.

However I am struggling to understand/googlesearch how to run such a script upon login out for only one user account and not for all user accounts.

Any help would be appreciated.

There are several ways you could do this.

One that comes to mind is to modify the /etc/profile file that is sources each time bash logs in.  You could create a section that looks to see if the user id is the guest id, and if so runs whatever you need it to.

Otherwise, you could look into running a script using lightdm conf (/etc/lightdm/lightdm.conf) and have the script only execute if the user id is the guest id.

Either way, the script should be owned by a restricted user so the guest user can not modify/disable it.

riser
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)