You are not logged in.
Pages: 1
After last upgrade, I am getting this error when trying to mount an external hard disk.
If I try it using dolphin, it says
"An error occured while accessing 'disk name', the system responded: An unspecified error has occurred.: Not Authorized"with
udisks --mount I am getting the same error too.
If I use these with sudo (gksu/kdesu) it works just fine.
My user is part of storage group. Also made changes in
/usr/shre/polkit-1/actions/org.freedesktop.udisks.policyto allow_inactive.
<allow_inactive>yes</allow_inactive>Offline
I believe the "storage" group was renamed to "disk" a while ago. At least I can't find a group named "storage" on my system.
To add yourself to the "disk" group, issue the following command:
usermod -aG disk your-login-nameThen logout (or reboot), to let the changes take effect.
Offline
I tried that. Still no luck.
Offline
With an active logind session you no longer need to worry about groups...
The wiki has the details.
Offline
@jasonwryan
When I try to check whether it is a active logind session by using loginctl
loginctl show-session $XDG_SESSION_IDIt says,
Failed to issue method call: Launch helper exited with unknown return code 1 Offline
You have to be running systemd for this to work.
Offline
I have added
systemdto my Daemons array in
rc.confBut still loginctl is showing the same message.
Offline
You are doing it wrong. Please read the wiki entry on systemd.
Offline
"With an active logind session you no longer need to worry about groups...
The wiki has the details."
No, it doesn't have the details.
If you don't know the answer to his question, why waste everyone's time playing school-marm?
"If you do not change direction, you may end up where you are heading." -- L.T.
Offline
Thanks. Adding systemd as a kernel parameter solved the issue.
Offline
"With an active logind session you no longer need to worry about groups...
The wiki has the details."No, it doesn't have the details.
If you don't know the answer to his question, why waste everyone's time playing school-marm?
Your assertion must be correct.
But I thought I has seen something ![]()
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
"With an active logind session you no longer need to worry about groups...
The wiki has the details."No, it doesn't have the details.
I can understand your confusion; it is hidden on the groups page of the wiki:
https://wiki.archlinux.org/index.php/Groups#User_groups
If you don't know the answer to his question, why waste everyone's time playing school-marm?
I'm sorry that I wasted your valuable time by posting information that would help the OP to read more about their issue and thereby encourage them to solve the issue themselves, rather than copy the information from the wiki here so that you didn't waste a few of your precious minutes having to search yourself trying to back up your empty assertion.
Offline
You should be sorry jasonwryan! I demand a refund!!!
Offline
[rhetorical question]Are our forum users getting crankier all of a sudden?[/rhetorical question]
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
I still don't understand how we're supposed to preserve logind sessions. This is all the information I could find on the Wiki:
https://wiki.archlinux.org/index.php/Xi … he_session
https://wiki.archlinux.org/index.php/Sy … emd-logind
https://wiki.archlinux.org/index.php/Groups#User_groups
Which is great and all... but where in there does it tell me how to actually preserve the session? I'm using awesome and starting it manually with xinit, so when I boot up into a VT everything is working correctly, as can be verified by
loginctl show-session $XDG_SESSION_IDHowever, after running xinit I get
Active=noThus it's broken (I'm assuming this means that it no longer believes I'm using the session, so it disables me from taking action). Also, it seems my VT has switched from CTRL+ALT+F1 to CTRL+ALT+F2... I get that /etc/X11/xinit/xserverrc handles the default tty to start on, but how do we actually use it, and what do we do? Or where is documentation related to this? Thanks.
Last edited by Whef (2012-11-11 01:53:02)
Offline
Are you fully up to date?
Can you post your .xinitrc file?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Yep, I update every day.
.xinitrc:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xrandr --dpi 120
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
syndaemon -K -R -t -i 1 -d
awesomeOffline
What if you were to change that last line to exec awesome in order to keep it on the same vt?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
After posting I actually thought of the same thing (it was left off because I deleted ck-launch-session and forgot to put it back), and unfortunately it didn't work.
Same exact thing.
Offline
I figured it out.
xinit is tasked with two jobs: finding a client to run, and finding a server to run it on.
The default behavior of xinit is to first look for commandline arguments that tell it what to do, e.g.:
xinit /usr/bin/awesome -- /usr/bin/XThis tells it to run awesome wm using the X server located at /usr/bin/X.
Failing commandline arguments, xinit then looks in your home directory for files .xinitrc and .xserverrc. If they exist, xinit will execute these files for the responsibility of the client and server, respectively.
If these do not exist, then xinit uses defaults built-in to the xinit program (launches xterm with /usr/bin/X). This is where startx differs. Under the same circumstance, startx will also search the /etc/X11/xinit directory for system wide xinitrc and xserverrc files. In all other ways startx is the same program, such that if you provide server arguments to startx then it will preference that over the default xserverrc, and thus you'll have the same problem.
All of this boils down to the appropriate X server arguments. The system wide xserverrc located in /etc/X11/xinit/xserverrc checks if the environment variable XDG_VTNR has been set (the current virtual terminal number, set by pam_systemd), and if it is then to use that same terminal number for the next X session by running:
exec /usr/bin/X vt$XDG_VTNRSo, there's three solutions:
Use startx instead of xinit
Make a symlink to the default xserverrc file in your home directory. This works because xinit still checks your home directory for xinitrc and xserverrc, just not the system wide files.
Make your own xserverrc that will do the correct thing, and put it in your home directory.
Last edited by Whef (2012-11-11 04:34:27)
Offline
Pages: 1