You are not logged in.

#1 2012-11-29 20:57:24

corruptz0r
Member
From: Atlanta, GA
Registered: 2010-07-07
Posts: 63

XFCE: permission issues after my systemd migration

After changing to systemd, my XFCE session has problems suspending (permission issues) as well as mounting external USB drivers.  Upon attempting to mount, I get this message: "Not authorized to perform operation."

-I've read the wiki.
-I'm in the "storage" user group.
-I've extensively searched the forum and cannot find an answer that works.
-cgroups is compiled into my kernel.

# ps -p 1 -o comm=

systemd

.xinitrc:

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
export DE=xfce
exec dbus-launch --exit-with-session startxfce4

Anyone?

Last edited by corruptz0r (2012-11-29 21:30:03)

Offline

#2 2012-11-29 21:35:23

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: XFCE: permission issues after my systemd migration

remove "dbus-launch --exit-with-session".

Offline

#3 2012-11-29 22:00:51

corruptz0r
Member
From: Atlanta, GA
Registered: 2010-07-07
Posts: 63

Re: XFCE: permission issues after my systemd migration

65kid wrote:

remove "dbus-launch --exit-with-session".

Thank you for the reply.  Unfortunately, this revision does not make a noticeable difference to this issue.

Offline

#4 2012-11-29 22:04:16

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: XFCE: permission issues after my systemd migration

how are you starting X?
btw you can and should remove yourself from the storage group (same for audio,video etc.).

I've extensively searched the forum and cannot find an answer that works.

well what exactly did you try already? I'm just curious because there have been over 9000 threads about this issue and I just can't believe that none of the solutions you found there worked.

Offline

#5 2012-11-29 22:17:25

corruptz0r
Member
From: Atlanta, GA
Registered: 2010-07-07
Posts: 63

Re: XFCE: permission issues after my systemd migration

I am starting X from the console.

Things I've picked up from this forum and tried (that I can remember doing):
-making sure polkit is running
-looked through logs for errors
-made sure lots of cgroup sub-options in the kernel are compiled in
-made sure systemd-sysvcompat was installed
-verified everything is correct in '/etc/systemd/system/multi-user.target.wants'

also, here is this, hopefully it can help:

#systemctl list-units

UNIT                        LOAD   ACTIVE SUB       DESCRIPTION
sys-devi...und-card0.device loaded active plugged   /sys/devices/pci0000:00/0000:00:1b.0/sound/card0
sys-devi...net-wlan0.device loaded active plugged   /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0
sys-devi...-net-eth0.device loaded active plugged   /sys/devices/pci0000:00/0000:00:1c.5/0000:04:00.0/net/eth0
sys-devi...-sda-sda1.device loaded active plugged   ST95005620AS
sys-devi...-sda-sda2.device loaded active plugged   ST95005620AS
sys-devi...-sda-sda3.device loaded active plugged   ST95005620AS
sys-devi...-sda-sda4.device loaded active plugged   ST95005620AS
sys-devi...-sda-sda5.device loaded active plugged   ST95005620AS
sys-devi...-sda-sda6.device loaded active plugged   ST95005620AS
sys-devi...block-sda.device loaded active plugged   ST95005620AS
sys-module-fuse.device      loaded active plugged   /sys/module/fuse
sys-subs...ices-eth0.device loaded active plugged   /sys/subsystem/net/devices/eth0
sys-subs...ces-wlan0.device loaded active plugged   /sys/subsystem/net/devices/wlan0
-.mount                     loaded active mounted   /
boot.mount                  loaded active mounted   /boot
dev-hugepages.mount         loaded active mounted   Huge Pages File System
dev-mqueue.mount            loaded active mounted   POSIX Message Queue File System
home.mount                  loaded active mounted   /home
sys-fs-f...onnections.mount loaded active mounted   FUSE Control File System
sys-kernel-debug.mount      loaded active mounted   Debug File System
tmp.mount                   loaded active mounted   /tmp
cups.path                   loaded active running   CUPS Printer Service Spool
systemd-...ord-console.path loaded active waiting   Dispatch Password Requests to Console Directory Watch
systemd-...ssword-wall.path loaded active waiting   Forward Password Requests to Wall Directory Watch
acpid.service               loaded active running   ACPI event daemon
colord.service              loaded active running   Manage, Install and Generate Color Profiles
cronie.service              loaded active running   Periodic Command Scheduler
cups.service                loaded active running   CUPS Printing Service
dbus.service                loaded active running   D-Bus System Message Bus
getty@tty1.service          loaded active running   Getty on tty1
hddtemp.service             loaded active running   Hard drive temperature monitor daemon
irqbalance.service          loaded active running   CPU Interrupt Request Balancer
laptop-mode.service         loaded active exited    Laptop Mode Tools
lm_sensors.service          loaded active exited    Initialize hardware monitoring sensors
ntpd.service                loaded active running   Network Time Service
polkit.service              loaded active running   Authorization Manager
rpcbind.service             loaded active running   RPC Bind
sshd.service                loaded active running   OpenSSH Daemon
syslog-ng.service           loaded active running   System Logger Daemon
systemd-binfmt.service      loaded failed failed    Set Up Additional Binary Formats
systemd-journald.service    loaded active running   Journal Service
systemd-logind.service      loaded active running   Login Service
systemd-...les-load.service loaded active exited    Load Kernel Modules
systemd-remount-fs.service  loaded active exited    Remount Root and Kernel File Systems
systemd-sysctl.service      loaded active exited    Apply Kernel Variables
systemd-...es-setup.service loaded active exited    Recreate Volatile Files and Directories
systemd-...-trigger.service loaded active exited    udev Coldplug all Devices
systemd-udevd.service       loaded active running   udev Kernel Device Manager
systemd-...sessions.service loaded active exited    Permit User Sessions
systemd-...le-setup.service loaded active exited    Setup Virtual Console
udisks2.service             loaded active running   Disk Manager
upower.service              loaded active running   Daemon for power management
vsftpd.service              loaded active running   vsftpd daemon
wicd.service                loaded active running   Wicd a wireless and wired network manager for Linux
acpid.socket                loaded active listening ACPID Listen Socket
cups.socket                 loaded active listening CUPS Printing Service Sockets
dbus.socket                 loaded active running   D-Bus System Message Bus Socket
syslog.socket               loaded active running   Syslog Socket
systemd-initctl.socket      loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket     loaded active running   Journal Socket
systemd-shutdownd.socket    loaded active listening Delayed Shutdown Socket
systemd-...d-control.socket loaded active listening udev Control Socket
systemd-udevd-kernel.socket loaded active running   udev Kernel Socket
basic.target                loaded active active    Basic System
cryptsetup.target           loaded active active    Encrypted Volumes
getty.target                loaded active active    Login Prompts
local-fs-pre.target         loaded active active    Local File Systems (Pre)
local-fs.target             loaded active active    Local File Systems
multi-user.target           loaded active active    Multi-User
network.target              loaded active active    Network
remote-fs.target            loaded active active    Remote File Systems
rpcbind.target              loaded active active    RPC Port Mapper
sleep.target                loaded active active    Sleep
sockets.target              loaded active active    Sockets
sound.target                loaded active active    Sound Card
swap.target                 loaded active active    Swap
sysinit.target              loaded active active    System Initialization
syslog.target               loaded active active    Syslog
systemd-...iles-clean.timer loaded active waiting   Daily Cleanup of Temporary Directories

Offline

#6 2012-11-29 22:20:35

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: XFCE: permission issues after my systemd migration

corruptz0r wrote:

I am starting X from the console.

that doesn't really answer my question. how exactly? startx? xinit? you have to use startx.

Offline

#7 2012-11-29 22:32:28

corruptz0r
Member
From: Atlanta, GA
Registered: 2010-07-07
Posts: 63

Re: XFCE: permission issues after my systemd migration

65kid wrote:
corruptz0r wrote:

I am starting X from the console.

that doesn't really answer my question. how exactly? startx? xinit? you have to use startx.

My bad:  startx.

Offline

#8 2012-11-30 07:37:57

robug
Member
Registered: 2010-11-17
Posts: 28

Re: XFCE: permission issues after my systemd migration

it would be necessary to comment out that whole "if" in your .xinitrc.
on my system it caused some problems with automounting
my .xinitrc contains just:
exec startxfce4

Offline

#9 2012-11-30 07:46:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: XFCE: permission issues after my systemd migration

robug wrote:

it would be necessary to comment out that whole "if" in your .xinitrc.
on my system it caused some problems with automounting
my .xinitrc contains just:
exec startxfce4

That is bad advice.


Corruptorz: do you have an active session? And I second 65kid's scepticism about you searching; check the wiki,  the session information is there.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB