Package Details: systemd-guest-user 33.2-1

Git Clone URL: https://aur.archlinux.org/systemd-guest-user.git (read-only, click to copy)
Package Base: systemd-guest-user
Description: A simple systemd configurations for guest user support
Upstream URL: https://github.com/Akrai/systemd-guest-user
Keywords: guest systemd user
Licenses: GPL3
Submitter: pavelshuvalov
Maintainer: Akrai
Last Packager: Akrai
Votes: 9
Popularity: 0.29
First Submitted: 2016-10-14 12:39
Last Updated: 2019-11-04 16:25

Required by (0)

Sources (1)

Pinned Comments

Akrai commented on 2018-08-01 14:49

Installing the package gets your system ready to use the guest user, which is basically a normal user with a tmpfs home folder (which gets erased after every reboot, not after a logout), but please notice two things:

  1. You probably want to add the guest user to some system groups you may consider in order to be able to use some resources of your computer, the same way as any other human user

  2. The script copies any file placed in the /etc/skel/ folder to the guest home after every reboot, intended mainly for copying config files you may consider useful to copy in every new guest session, for example if you need special graphical or network config files placed in order to get a properly working guest user. Any suggestion is welcomed

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

azurata commented on 2018-07-30 21:33

The guest user is not created with the command: ExecStart=/usr/sbin/bash -c 'id guest >& /dev/null || useradd guest'

It is created at sysusers.d/guest.conf

I don't know if it's safe or the best option, but adding a line to sysusers.d/guest.conf will solve this:

r - 1000-60000

u guest - Guest /home/guest

Akrai commented on 2018-07-30 16:53

i see, what do you suggest? the man page of useradd mentions an option to create a system account, but i can't find one for creating an user account

azurata commented on 2018-07-30 15:34

If guest user doesn't exist it will be created as a system account. According to /etc/login.defs

Min/max values for automatic uid selection in useradd

UID_MIN 1000 UID_MAX 60000

System accounts

SYS_UID_MIN 500 SYS_UID_MAX 999

Akrai commented on 2018-07-30 09:50

also, you can manually create the guest user, it should be created with id >= 1000 as normally happens, i did it just to add it to some system groups needed for using some hardware of my computer

Akrai commented on 2018-07-30 09:48

my guest user has id 1001, created with this script as for the shell error, im testing and changing it as you proposed

azurata commented on 2018-07-29 13:21

One more problem, lightdm by default will list users with ID >= 1000 but the guest user will be created with ID less than 1000.

azurata commented on 2018-07-29 13:18

I have a problem with: ExecStart=/usr/sbin/chsh -s /usr/bin/sh guest

output error: Changing shell for guest. chsh: Warning: "/usr/bin/sh" is not listed in /etc/shells. Shell changed.


$ cat /etc/shells

/etc/shells

/bin/sh /bin/bash

End of file

/bin/zsh /usr/bin/zsh /usr/bin/git-shell


It will work with: ExecStart=/usr/sbin/chsh -s /bin/sh guest

Akrai commented on 2018-06-26 19:38

now should be fixed

azurata commented on 2018-06-26 19:12

@Akrai thanks, no problem with the firewall now.

There's a problem with this update, it keep asking to be updated to 18.b2ba022, because pkgver=18.b2ba022 and echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" will change pkgver to 17.b2ba022

regards

Akrai commented on 2018-06-26 12:00

@azurata done, test if it does work for you now