LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-01-2009, 10:21 AM   #1
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Rep: Reputation: 16
Is there a Guest session in debian like the one on ubuntu?


I am a fan of ubuntu but I am wondering always to try the mother of ubuntu which is debian, but there is something always irritates me when I want to migrate from ubuntu to debian is the guest session, because I always lend my computer to others and I dont want them to play with my personal files and such.

My question is: Can I install guest session to debian? Is there an easy and fast way to hid my personal files when I lend my computer to others?
 
Old 02-01-2009, 10:43 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Can I install guest session to debian?
Just create a new user, called perhaps, guest and let them use that login.
Quote:
Is there an easy and fast way to hid my personal files when I lend my computer to others?
Of course: chmod 700 /home/yourusername
Simple enough?
[Edit]: Beware, that will not hide your files if they can get root access eg with a "live CD". [/Edit]

Last edited by tredegar; 02-01-2009 at 10:45 AM.
 
Old 02-01-2009, 12:44 PM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by wanas View Post

My question is: Can I install guest session to debian? Is there an easy and fast way to hid my personal files when I lend my computer to others?
As mentioned you can easily create another account and have guests log-in to that account. Have your unit boot-up to the log-in screen (don't have it auto log-in to your private account.)
 
Old 02-01-2009, 08:57 PM   #4
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tredegar View Post
Just create a new user, called perhaps, guest and let them use that login.

Of course: chmod 700 /home/yourusername
Simple enough?
[Edit]: Beware, that will not hide your files if they can get root access eg with a "live CD". [/Edit]
Can I make this user at the /tmp to automatic delete it when I restart the computer? because this user maybe will download files from the net and this will take extra space, or something like that makes the same usage.
 
Old 02-02-2009, 01:22 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Can I make this user at the /tmp
No, you can not: Because the "guest" will be deleted when you shut down the computer. When it reboots, the account will not exist.

You have access to your computer as the root user, so, if you wish, you can delete your guest's files at any time.
 
Old 02-02-2009, 04:43 PM   #6
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Yeah thanks guys for helping it works great for me.
but if there is any other helpful adds it would be great
 
Old 02-06-2009, 09:40 PM   #7
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Dont forget to take stuff out of the menus you dont want them to use. The above and what I said is what I did for my Grandson.
 
Old 02-06-2009, 10:25 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Interesting - I've never seen "guest" under Ubuntu. I always build my systemsfrom alpha/beta - this Intrepid system has no guest user (not in /etc/passwd).
 
Old 02-06-2009, 11:04 PM   #9
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
I think when making a new user for guests is more better from the guest session on ubuntu because I figured something on ubuntu guest session: When I launch openoffice from there it wont open (is this from my system I am using ubuntu 8.10 64bit)
 
Old 12-16-2021, 10:24 AM   #10
DR.Joint
LQ Newbie
 
Registered: Apr 2004
Location: netherlands
Distribution: mandrake, slackware
Posts: 3

Rep: Reputation: 0
Lightbulb Debian 11 tmp Guest Session

As no one has given a valid answer of things that can still be done easily.

No there is no guest session included in Debian but nevertheless you can take one from Ubuntu and implement it in your Debian.

source: https://blog.vstans.nl/?hl=en#id=7

HowTo: Setup Debian 11 temp guest login

make a backup of 01_debian.conf found in /usr/share/lightdm/lightdm.conf.d/01_debian.conf but outside that directory as it will be deleted otherwise.

search https://pkgs.org/download/lightdm for the appropriate lightdm.deb that fits your need. For Debian 11 I used lightdm_1.30.0-0ubuntu4~20.04.2_amd64.deb
found in Ubuntu Focal.

install this file with
Code:
dpkg -i lightdm_1.30.0-0ubuntu4~20.04.2_amd64.deb
If required install missing dependencies.

look inside your 01_debian.conf backup file and make sure it has greeter-hide-users=false or it will not show the guest account

mine looks like this:
Code:
[Seat:*]
greeter-session=lightdm-greeter
greeter-hide-users=false
session-wrapper=/etc/X11/Xsession
copy it back to the location /usr/share/lightdm/lighdm.conf.d/

In this directory you will also find file 50-disable-guest.conf change it contents to
Code:
[Seat:*]
allow-guest=true
in the same directory you will find 50-xserver-command.conf change it contents by commenting it out with #
Code:
[Seat:*]
# Dump core
#xserver-command=X -core
or simply delete the file.

That should be all configuration needed to restart lightdm.service
Code:
systemctl restart lighdm.service
Extra's:

The guest user account will be created on every login and deleted on every logout.

To customize the guest account you can create a skeleton in /etc/guest-session/
mkdir /etc/guest-session/skel/

If this directory is not created or found it will use the default directory /etc/skel which you can also use but is not adviced as this is also used for newly created users. you may however copy it's contents to /etc/guest-session/skel/

To disable excisting users from showing on the login you can disable them. Each user has a own file and need to be editted seperatly. ex. for user foobar edit /var/lib/AccountsService/users/foobar and add
Code:
SystemAccount=true
 
Old 12-21-2021, 07:15 PM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by DR.Joint View Post
search https://pkgs.org/download/lightdm for the appropriate lightdm.deb that fits your need. For Debian 11 I used lightdm_1.30.0-0ubuntu4~20.04.2_amd64.deb
found in Ubuntu Focal.
It's a pretty bad practice to install random deb packages from random sources on your system, especially if an official package from Debian exists: https://packages.debian.org/bullseye/lightdm

Evo2.

P.S. Not sure necroing a 12 year old thread with a cut-and-paste from someone's (your?) blog is such a good idea.
 
Old 12-31-2021, 09:26 AM   #12
djk44883
Member
 
Registered: Aug 2008
Location: Ohio
Distribution: debian
Posts: 141

Rep: Reputation: 29
Quote:
Originally Posted by DR.Joint View Post
search https://pkgs.org/download/lightdm for the appropriate lightdm.deb that fits your need. For Debian 11 I used lightdm_1.30.0-0ubuntu4~20.04.2_amd64.deb
found in Ubuntu Focal.
Code:
SystemAccount=true
Along with the previous comment... presuming I think this is a good idea, how do I keep my system updated? Do I have to randomly routinely check for updates for Ubuntu's lightdm ??

Wouldn't the good idea include adding the repository, pining [apt-pin] the repository as -1 and lightdm from source as 100 (? I don't recall the exact specifics without looking). Wouldn't you wan't FrankenDebian to have the illusion of stability by staying up to date?
 
  


Reply

Tags
guest, session



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Transfer Files From Ubuntu (Host) and XP (Guest) ?? taurusx5 Linux - Software 2 04-11-2008 01:41 AM
Not access USB on Guest XP on Ubuntu 7.10 host. domenicosaba Linux - Software 2 03-29-2008 04:25 PM
sound in qemu guest os on debian? zero79 Debian 2 10-16-2005 06:42 PM
Netscape only session for guest rvilarl Linux - General 2 10-05-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration