You are not logged in.
Hello,
I did a clean Arch Linux install with XFCE4. I am unable to mount windows share in Thunar. I either get Authorization is Required or Not Authorized. I have gvfs and ntfs-3g installed. I use slim as DM. I have dbus installed and dbus and hal in rc.conf. This seems to be a common problem and I have tried a few things but can't pin point the problem.
#!/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 gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec ck-launch-session dbus-launch startxfce4
Thanks.
Last edited by donniezazen (2012-03-19 07:32:24)
Offline
do you have the consolekit? installed?
Arch Mint Winfail7
Offline
Is your user added to the "storage" group?
PS: HAL has been deprecated for a while, you shouldn't be using it anymore.
Burninate!
Offline
@Cory_J Yes, I have consolekit installed. I am not sure about policykit. I have never installed these manually before.
@Gcool I am added to group storage. Ok I will remove HAL daemon from my rc.conf.
As wiki says, I have stripped down my ~/.xinitrc to exec startxfce4 and edited slim as follows. But I still can't mount drives.
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
full slim.conf http://pastebin.com/z1aeCrgq
Thank you.
Offline
I run hal and have not run into any problems (despite it being depreciated some older apps need it I have found). My daemons array:
syslog-ng dbus hal cpufreq pdnsd networkmanager alsa gopreload
Have you tried adding dbus and launching that way?
Snip from my .xinitrc
exec ck-launch-session dbus-launch startxfce4
Edit: Also, if you are using thunar you may want to look into these 2 packages:
extra/udisks
extra/thunar-volman
For some reason I remember needing them.
Last edited by dodo3773 (2012-03-17 19:16:54)
Offline
@dodo3773
I removed ck-launch-session from login_cmd (reverted to default).
I kept dbus and hal in rc.conf
I changed my ~/.xinitrc to what you have (exec ck-launch-session dbus-launch startxfce4).
I installed udisks and thunar-volman.
Still no luck. Instead of authorization not found. I am getting not authorized.
Thanks for replying.
Offline
Other than that I am not sure. May be a policy kit issue though. You could test changing no to yes globally in this file and rebooting for a quick test:
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
Here are the ntfs programs I have installed for reference if it helps at all:
yaourt -Ss ntfs | grep installed
extra/ntfs-3g 2012.1.15-1 [installed]
extra/ntfsprogs 2012.1.15-1 [installed]
aur/libntfs-dev 2.0.0-1 [installed] (18)
Offline
@dodo3773 Do you mean changing all 'no' to 'yes'?
Yeah that's what I mean. Not sure if it will work. Although if it doesn't you can just change them all back. I think the default layout is:
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
change it to
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
Offline
@dodo 3773 It did nothing. Thanks.
My current situation.
DAEMONS=(syslog-ng dbus hal crond @alsa @ntpd @sshd @tlp @thinkfan @wicd slim)
MODULES=(coretemp thinkpad_acpi tp_smapi fuse autofs4)
login_cmd exec /bin/bash -login ~/.xinitrc %session
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 startxfce4
Package installed
extra/ntfs-3g 2012.1.15-1 [installed]
extra/ntfsprogs 2012.1.15-1 [installed]
aur/libntfs-dev 2.0.0-1 [installed] (18)
extra/gvfs 1.10.1-3 [installed]
extra/gvfs-afc 1.10.1-3 [installed]
extra/gvfs-gphoto2 1.10.1-3 [installed]
extra/gvfs-smb 1.10.1-3 [installed]
extra/fuse 2.8.7-1 [installed]
community/autofs 5.0.6-3 [installed]
extra/polkit 0.104-1 [installed]
extra/consolekit 0.4.5-2 [installed]
extra/udisks 1.0.4-2 [installed]
extra/thunar-volman 0.6.0-3 (xfce4-goodies) [installed]
I have reverted back to original polkit.
Thanks.
Last edited by donniezazen (2012-03-17 23:28:17)
Offline
Well I'm out of ideas. If you can mount it from the command line maybe you could write an entry for it in /etc/fstab or automount it somehow at boot if that's what you want. Good luck. Please post back fix when you figure it out. I am interested in finding out what it is.
Offline
Offline
dont know what can be happening but this is just an idea, maybe slim is at fault here, disable it temporarily (put a ! before it on rc.conf) and when you get to the tty login login and the do a normal xinit, that way if it works you know its slim fault. Hope it helps you
Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff
Offline
dont know what can be happening but this is just an idea, maybe slim is at fault here, disable it temporarily (put a ! before it on rc.conf) and when you get to the tty login login and the do a normal xinit, that way if it works you know its slim fault. Hope it helps you
I banged slim. Logged and startxfce4 but no luck again. Thanks for the idea.
Offline
so many wrong suggestions in this thread.
1) fix your ~/.xinitrc. it should ONLY contain the line exec ck-launch-session startxfce4
2) install polkit-gnome and relogin
3) be sure that /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 runs and if not, run it manually or from whatever xfce has to do it automatically at login,
4) thunar-volman is deprecated, install gvfs
Everything should be fine now.
Give what you have. To someone, it may be better than you dare to think.
Offline
@wonder
1.Changed ~/.xinitrc as you suggested.
2.Installed polkit-gnome.
4.Removed thunar-volman and only running gvfs.
3. Not sure how am I suppose to run /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1. How do I check if it is running? Do I need to run that as a root user on start? Running it as a root user in a terminal gives me following error.
sudo /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
Password:
(polkit-gnome-authentication-agent-1:996): polkit-gnome-1-WARNING **: Unable to determine the session we are in: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '996'
I am still stuck with 'Not Authorized'.
Thank you.
PS:Your blog is very informative.
Last edited by donniezazen (2012-03-18 16:13:06)
Offline
i did not say to start that as root.
to check if is running, do ps x | grep polkit
Give what you have. To someone, it may be better than you dare to think.
Offline
Offline
So it was slim's fault? Guess I wasn't so lost after all glad you got it working!
Linux user #498977
With microsoft you get windows and gates, with linux you get the whole house!
My Blog about ArchLinux and other stuff
Offline
so many wrong suggestions in this thread.
1) fix your ~/.xinitrc. it should ONLY contain the line exec ck-launch-session startxfce4
2) install polkit-gnome and relogin
3) be sure that /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 runs and if not, run it manually or from whatever xfce has to do it automatically at login,
4) thunar-volman is deprecated, install gvfsEverything should be fine now.
Just had the same problem and this worked for me, thanks.
Offline
Instead of all the .xinit hackery, you can use "startxfce4 --with-ck-launch" in 4.10. polkit-gnome is not required for Xfce. Thunar-volman is not deprecated, it is a tool that watches udev events, it has absolutely nothing to do with mount authentication issues: it can only trigger automounting (through thunar->gio->gvfs) and spawn apps if special devices are attached.
Offline
Offline
True, but display manager usually also setup a proper consolekit environment (not slim iirc), but at least lightdm and gdb do. "startxfce4 --with-ck-launch" is only a better option for the startx people.
Offline