apognu / tuigreet

Graphical console greeter for greetd
GNU General Public License v3.0
986 stars 45 forks source link

Permission Denied Error #89

Closed rustysys-dev closed 1 year ago

rustysys-dev commented 1 year ago

I don't actually know the whole story here, but I have been trying for almost 3 hours to get this working...

I have installed greetd, enabled it in systemd and set a graphical target. On boot greetd is started and the default session is run.

tuigreet is installed as follows

    log "Installing tuigreet Greeter"
    git clone https://github.com/apognu/tuigreet .src/tuigreet
    (\
        cd .src/tuigreet \
        && cargo build --release \
        && sudo mv target/release/tuigreet /usr/local/bin/tuigreet
    )
    onfailure $? "failed to install tuigreet"

and greetd is installed via dnf

sudo dnf install greetd

I made sure to make the /etc/greetd/ directory and its contents readable by all via the following command.

sudo chmod -R go+r /etc/greetd/

then I start the daemon via the command (or on system boot)

systemctl enable --now greetd

but the permission denied error when executing /usr/local/bin/tuigreet persists. In fact the system tries to access tuigreet multiple times and then just freezes...

here are the current settings for these directories...

[rusty@fedora ~]$ ll /etc/greetd
.rw-r--r--@ 539 root 21 Mar 15:31 config.toml
[rusty@fedora ~]$ ll /usr/local/bin/tuigreet
.rwxr-xr-x@ 5.7M root 21 Mar 14:22 /usr/local/bin/tuigreet

I am not sure what else I need to try but I feel like I have tried to do just about everything... By the way one thing I noticed is that this application will work if the socket file is owned by the user which executes tuigreet... If you could point me in the right direction here I would be grateful.

rustysys-dev commented 1 year ago

https://todo.sr.ht/~kennylevinsen/greetd/43

was required to restorecon after building and moving the binary into the /usr/local/bin/ directory for this to work.