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: 11
Popularity: 0.96
First Submitted: 2016-10-14 12:39 (UTC)
Last Updated: 2019-11-04 16:25 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

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:

  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 7 Next › Last »

akrai commented on 2019-02-14 17:33 (UTC)

I just changed the versioning method because until now the version showed in aur didn't correspond to the actual version of the installed package, which was higher, so either i set a higher hardcoded version than the number of commits, or i just ignore the version system used until now and just use a hardcoded version number, and set it higher than the number of commits so people that installed this package gets an update automatically.

akrai commented on 2019-02-12 21:28 (UTC) (edited on 2019-02-12 21:28 (UTC) by akrai)

Okay bug fixed, wasn't needed to change the pkgbuild script, the problem was that in the repo those files wasn't symlinks. Fixed now. Thanks!

skidnik commented on 2019-02-12 20:09 (UTC) (edited on 2019-02-12 20:09 (UTC) by skidnik)

the second and third line on that screenshot tell you where it's screwed. when copying symlinks you should cp -d, otherwise the files linked are copied.

akrai commented on 2019-02-11 18:18 (UTC)

So i get this

https://i.imgur.com/6yRCaoa.png

And also i get that systemctl list-dependencies systemd-guest-config.service does show home-guest.mount but systemctl list-dependencies sysinit.target does not show any of both guest services

skidnik commented on 2019-02-10 20:21 (UTC)

Search through journalctl -b for home/guest and home-guest, see what systemd has to tell about the reasons. search for both service names and see if they're started.

systemctl list-dependencies systemd-guest-config.service must show the home-guest.mount.

systemctl list-dependencies sysinit.target must show both systemd-guest-config.service and systemd-guest-user.service.`

akrai commented on 2019-02-10 18:46 (UTC) (edited on 2019-02-10 19:03 (UTC) by akrai)

doesn't get mounted

I don't understand, it isn't listed as mounted but i login as guest, make files, reboot and files get erased as a tmpfs should do, i don't get it

https://i.imgur.com/2lTgma1.png

skidnik commented on 2019-02-10 18:33 (UTC) (edited on 2019-02-10 18:33 (UTC) by skidnik)

Make sure to systemctl daemon-reload, then after reboot check if /home/guest got mounted, grep 'guest' /proc/mounts should show the mounted tmpfs, check if systemd-guest-config.service got loaded, it won't start without successfull mount, journalctl -b shows last boot log.

akrai commented on 2019-02-10 14:40 (UTC)

Hmm systemd-guest-config.service seems to not be loading for me, no files are copied to /home/guest, and i can't find what is the problem

akrai commented on 2019-02-10 14:07 (UTC)

Okay so then im gonna copy your repo over mine to use your modifications in the package, thanks for the job!

skidnik commented on 2019-02-10 12:02 (UTC)

it just uses the home-guest as /home/guest

weird af, but I thought of it as something systemd may do.

Anyways, I've copied your github to my gitlab as I have plans on implementing this on Xubuntu. It's in the state it's working on my laptop rn. What I did:

separated what's to be before (systemd-geust-user.service) and after (systemd-guest-config.service) home-guest.mount,

added Where= to home-guest.mount, cos it's kinda more obvious and clear this way,

removed home-guest.mount from sysinit.target.wants, and stated Requires=home-guest.mount in systemd-guest-config.service,

removed After=systemd-tmpfiles-setup.service from home-guest.mount, 'cos otherwise it caused a circular dependency: any *.mount ,it seems, is part of local-fs.target, which has Before=systemd-tmpfiles-setup.service, so home-guest.mount can't be After=systemd-tmpfiles-setup.service, systemd was just removing the mount from tasks before I did this. It may have failed if the /home/guest did not exist, but I tried removing it and then rebooting and it seems that systemd is smart enough to create a mount target if it does not exist, and yes, it's stated in systemd documentation.