You are not logged in.
Hi,
I recently installed arch linux it's a nice distro but I got a few problem with it.
The biggest one is that I am actually not able to mount usb drives with pcmanfm this means that I am not able to use my old debian /home so far.
I tired multiple thinks (some of them are still active) e.g for example I used to setup a udev rules which wasn't helpful at all (and even after deleting this rule I always see server empty folder in /media (but that's another problem)).
Any ideas why I am not able to mount encrypted and not encrypted USB drives in arch linux?
Last edited by 42sec (2011-12-28 13:21:41)
Offline
How do you start your WM? If you use .xinitrc, do you have
exec ck-launch-session dbus-launch <your wm>
there?
Note that 'ck-launch-session' comes before 'dbus-launch'. If you do them the other way around you might get "Not authorized" errors when you try to mount your drive.
Offline
How do you start your WM?
exec ck-launch-session dbus-launch --exit-with-session startxfce4
and yes I have ~/.xinitrc
Not sure if this is important, but I created ~/.xinitrc as root (yeah I know that's stupid) so I am only able to edit it with root rights...
Last edited by 42sec (2011-12-28 13:29:42)
Offline
Change the permissions for ~/.xinitrc.
karol@black ~]$ ls -l ~/.xinitrc
-rwxr-xr-x 1 karol users 1449 12-25 05:19 /home/karol/.xinitrc
Offline
Change the permissions for ~/.xinitrc.
karol@black ~]$ ls -l ~/.xinitrc -rwxr-xr-x 1 karol users 1449 12-25 05:19 /home/karol/.xinitrc
Well I just deleted it and afterwords I recreated it with the same content, which has the same effect, but even after rebooting my machine mounting usb drives is still not possible ;'(
Last edited by 42sec (2011-12-28 13:41:24)
Offline
Can you mount them by hand?
Is your user in the storage group?
Do you have consolekit installed?
Are you using Slim Login Manager?
Offline
he has a proper authorization in place. the only thing missing is an agent to take care of login.
install polkit-gnome and be sure that after login, /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 is running
after that it will ask the root password if the user is not in wheel group, your user password if is in wheel group, like sudo
Last edited by wonder (2011-12-28 13:59:24)
Give what you have. To someone, it may be better than you dare to think.
Offline
Can you mount them by hand?
Is your user in the storage group?
Do you have consolekit installed?
Are you using Slim Login Manager?
I can mount them using pmount
Yes he is
Not so sure, but I don't think so
Nope I am logging in using the shell
Offline
he has a proper authorization in place. the only thing missing is an agent to take care of login.
install polkit-gnome and be sure that after login, /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 is running
after that it will ask the root password if the user is not in wheel group, your user password if is in wheel group, like sudo
What does the login even has to do with my mount problem?
Offline
wonder wrote:he has a proper authorization in place. the only thing missing is an agent to take care of login.
install polkit-gnome and be sure that after login, /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 is running
after that it will ask the root password if the user is not in wheel group, your user password if is in wheel group, like sudo
What does the login even has to do with my mount problem?
well, mounting internal partition needs root. consolekit+polkit does this in the desktop, like sudo works. For this to work it needs an agent to take care of that, giving proper authorization for mounting.
if polkit-gnome is installed (a.k.a the agent) when trying to mount it will ask for a password. In your system, this is missing and returns Not Authorized.
Give what you have. To someone, it may be better than you dare to think.
Offline
42sec wrote:wonder wrote:he has a proper authorization in place. the only thing missing is an agent to take care of login.
install polkit-gnome and be sure that after login, /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 is running
after that it will ask the root password if the user is not in wheel group, your user password if is in wheel group, like sudo
What does the login even has to do with my mount problem?
well, mounting internal partition needs root. consolekit+polkit does this in the desktop, like sudo works. For this to work it needs an agent to take care of that, giving proper authorization for mounting.
if polkit-gnome is installed (a.k.a the agent) when trying to mount it will ask for a password. In your system, this is missing and returns Not Authorized.
Ok I installed polkit-gnome what to do now?
Offline
42sec wrote:wonder wrote:he has a proper authorization in place. the only thing missing is an agent to take care of login.
install polkit-gnome and be sure that after login, /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 is running
after that it will ask the root password if the user is not in wheel group, your user password if is in wheel group, like sudo
What does the login even has to do with my mount problem?
well, mounting internal partition needs root. consolekit+polkit does this in the desktop, like sudo works. For this to work it needs an agent to take care of that, giving proper authorization for mounting.
if polkit-gnome is installed (a.k.a the agent) when trying to mount it will ask for a password. In your system, this is missing and returns Not Authorized.
How do I start the agent?
Offline
it starts automatically because it has a .desktop in /etc/xdg/autostart/. If not, just do
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & after ck-launch-session command
Give what you have. To someone, it may be better than you dare to think.
Offline
it starts automatically because it has a .desktop in /etc/xdg/autostart/. If not, just do
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & after ck-launch-session command
Yeah ok you are right, but I didn't fixed my problem at all still get the error
Not Authorized
Offline
paste ck-list-sessions output, uname -r and cat /etc/pam.d/login
Give what you have. To someone, it may be better than you dare to think.
Offline
paste ck-list-sessions output, uname -r and cat /etc/pam.d/login
[sec42@archlinux ~]$ ck-list-sessions
Session1:
unix-user = '1000'
realname = ''
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-12-28T14:28:01.840505Z'
login-session-id = '1'
idle-since-hint = '2011-12-28T14:28:32.462384Z'
[sec42@archlinux ~]$ uname -r
3.1.5-1-ARCH
[sec42@archlinux ~]$ cat /etc/pam.d/login
#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth required pam_unix.so nullok
auth required pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth required pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account required pam_access.so
account required pam_time.so
account required pam_unix.so
#password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password required pam_unix.so sha512 shadow use_authtok
session required pam_unix.so
session required pam_env.so
session required pam_motd.so
session required pam_limits.so
session optional pam_mail.so dir=/var/spool/mail standard
session optional pam_lastlog.so
session optional pam_loginuid.so
-session optional pam_ck_connector.so nox11
-session optional pam_systemd.so
Offline
ok so you have active = FALSE. that's the problem. it must be TRUE, as well as is-local
paste ~/.xinitrc
Last edited by wonder (2011-12-28 14:48:08)
Give what you have. To someone, it may be better than you dare to think.
Offline
ok so you have active = FALSE. that's the problem. it must be TRUE, as well as is-local
paste ~/.xinitrc
Where does it have to be true?
[sec42@archlinux ~]$ cat ~/.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
exec ck-launch-session dbus-launch --exit-with-session startxfce4
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
Last edited by 42sec (2011-12-28 14:49:59)
Offline
drop the if block along with the for and just have in xinitrc only the line exec ck-launch-session startxfce4
Give what you have. To someone, it may be better than you dare to think.
Offline
drop the if block along with the for and just have in xinitrc only the line exec ck-launch-session startxfce4
Ok did that but still same error
[sec42@archlinux ~]$ cat ~/.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
exec ck-launch-session dbus-launch --exit-with-session startxfce4
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
Last edited by 42sec (2011-12-28 15:05:32)
Offline
On another note, I was having the same problem. I found that if you launch your WM in the .xinitrc WITHOUT dbus-launch, instead putting dbus-launch before pcmanfm, it seems to fix the problem
Example .xinitrc
exec dbus-launch pcmanfm --desktop &
exec ck-launch-session startfluxbox
Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e
Offline
On another note, I was having the same problem. I found that if you launch your WM in the .xinitrc WITHOUT dbus-launch, instead putting dbus-launch before pcmanfm, it seems to fix the problem
Example .xinitrcexec dbus-launch pcmanfm --desktop & exec ck-launch-session startfluxbox
Nope same error ;'(
It has no effect at all
Offline
Do you have gvfs and consolekit installed?
Offline
Do you have gvfs and consolekit installed?
Nope installed them and rebooted but I still have the same fucking error I can't believe this what am I doing wrong?
Offline
Well apart from that I have no idea, the last time I had this issue it was consolekit that was causing it.
Just to be sure do you have dbus installed and in the daemons array?
Offline