Akrai: that "fork" you found on github, is that your repository?
Search Criteria
Package Details: systemd-guest-user 33.2-1
Package Actions
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: | 11 |
Popularity: | 0.003410 |
First Submitted: | 2016-10-14 12:39 (UTC) |
Last Updated: | 2019-11-04 16:25 (UTC) |
Dependencies (2)
- systemd (systemd-chromiumosAUR, systemd-fmlAUR, systemd-selinuxAUR, systemd-gitAUR)
- git (git-gitAUR, git-glAUR) (make)
Required by (0)
Sources (1)
Alad commented on 2018-03-03 18:53 (UTC)
nfs commented on 2017-11-17 03:28 (UTC)
I get
fatal: remote error
Repository not found
==> ERROR: Failure while downloading systemd-guest-user git repo
Aborting...
akrai commented on 2017-02-28 11:15 (UTC) (edited on 2017-08-31 09:26 (UTC) by akrai)
ok so its simple and it just works, but, two things:
first of all, create the guest user before installing this package:
sudo useradd guest
sudo usermod -aG disk,uucp,rfkill,storage guest
sudo usermod -d /home/guest/
sudo passwd -d guest
and there is a bug which didnt let me log into guest user after installing this package and rebooting: the systemd-guest-user.service contains a line:
ExecStart=/usr/sbin/chsh -s /usr/bin/sh guest
which is wrong, you have to change manually /usr/bin/sh with /bin/bash or sh, i personally use bash as i havent used sh ever
Also, you have to change the order of the lines: put the ExecStart=/usr/sbin/bash -c 'cp -a /usr/share/guest-configuration/* /home/guest' line the last one, because if that folder is empty, cp will give you an error and the service will stop continuing
tip: i didnt used it but the /usr/share/guest-configuration folder is used so you store there the config files you need the guest user to have, for example you want to have a specific setting for trackpad or something by default, so you log in guest account, make the changes you want to save in the settings, and the files generated in the home folder you copy it in that folder
Also, if you dont use this feature of copying in every boot files to the guest folder, comment the line of cp in the systemd unit so it doenst throw an error of loading the unit in every boot
Pinned Comments
akrai commented on 2018-08-01 14:49 (UTC) (edited on 2019-11-04 16:11 (UTC) by akrai)
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:
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
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