LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 12-28-2009, 02:16 AM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Rep: Reputation: 54
Cannot start XFCE4 as regular user


Hi all!

I have installed XFCE but I cannot run it in normal user. I have both dbus and hal up and running, but when I try to fire XFCE I come to this error:

Code:
Unable to load a failsafe session 
 
Unable to determine failsafe session name.  Possible causes: xfconfd isn't running (D-Bus setup problem); environment variable $XDG_CONFIG_DIRS is set incorrectly (must include "/etc"), or xfce4-session is installed incorrectly.
$XDG_CONFIG_DIRS points to /etc/xdg

I have tried to find a solution googling and on the forum, but most of the issues are referred to people not having either hal or dbus enabled, which is not my case.

If I run XFCE as root, I have no problems and the WM loads fine.

Can anyone help me with that please?

Thanks in advance!
 
Old 12-28-2009, 06:43 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by Hammett View Post
Hi all!

Thanks in advance!
check the permisions on /etc/xdg (ls -l /etc/xdg) to use if normal users can read it.
 
Old 12-28-2009, 06:58 AM   #3
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
Well, that's weird...

I did not have permissions to access xdg directory on a normal user, so I added permissions to access it (+rx) and I tried again to lauch XFCE without success. I also made sure I am on the correct groups regarding dbus and hal
 
Old 12-28-2009, 06:59 AM   #4
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by Hammett View Post
Well, that's weird...

I did not have permissions to access xdg directory on a normal user, so I added permissions to access it (+rx) and I tried again to lauch XFCE without success. I also made sure I am on the correct groups regarding dbus and hal
what ls -l /etc/xdg outputs?
 
Old 12-28-2009, 07:02 AM   #5
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
Code:
[root][/root] $ ls -l /etc/xdg/
total 16
drwxr-xr-x 2 root root 4096 Dec 27 17:01 Thunar
drwxr-xr-x 2 root root 4096 Dec 27 16:59 autostart
drwxr-xr-x 2 root root 4096 Dec 27 17:01 menus
drwxr-xr-x 4 root root 4096 Dec 27 16:57 xfce4
Code:
[root][/root] $ ls -l /etc/
drwxr-x--- 6 root root   4096 Dec 28 13:57 xdg
 
Old 12-28-2009, 07:05 AM   #6
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by Hammett View Post
Code:
[root][/root] $ ls -l /etc/xdg/
total 16
drwxr-xr-x 2 root root 4096 Dec 27 17:01 Thunar
drwxr-xr-x 2 root root 4096 Dec 27 16:59 autostart
drwxr-xr-x 2 root root 4096 Dec 27 17:01 menus
drwxr-xr-x 4 root root 4096 Dec 27 16:57 xfce4
Code:
[root][/root] $ ls -l /etc/
drwxr-x--- 6 root root   4096 Dec 28 13:57 xdg
chmod 644 /etc/xdg
 
Old 12-28-2009, 07:08 AM   #7
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by ozanbaba View Post
chmod 644 /etc/xdg
Yes, I already tried that and said it did not work.
 
Old 12-28-2009, 07:10 AM   #8
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by Hammett View Post
Yes, I already tried that and said it did not work.
permisions does not show 644
 
Old 12-28-2009, 07:13 AM   #9
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by ozanbaba View Post
permisions does not show 644
I said before that permissions were in a way a regular user could not read /etc/xdg AND THAT I HAVE CHANGED THEM to grant access. Even with that it did not work.
That was before you told me to chmod to 644

Thanks
 
Old 12-28-2009, 07:20 AM   #10
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by Hammett View Post
I said before that permissions were in a way a regular user could not read /etc/xdg AND THAT I HAVE CHANGED THEM to grant access. Even with that it did not work.
That was before you told me to chmod to 644

Thanks
i may act annoying bastard from time to time. i don't do it on purpose, it's side effect of engineering education. i don't what they changed in me, i became like this.

usual cause for root can run, normal user can't is permissions. it's most of the time, it's permissions. and dir's permissions is important as files can has 644 but if dir has 640 or similar, normal users can't access the dir at all (i moved my home folder to new place once, wrong permissions on user's home caused me a lot of access problems.)
 
Old 12-28-2009, 07:22 AM   #11
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Seems to me like a dbus error, how are you launching xfce?
Put this in your .xinitrc:
Quote:
exec ck-launch-session xfce4-session
 
Old 12-28-2009, 09:31 AM   #12
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
I tried several ways to start XFCE:

Typing xfce-session on a terminal while on fluxbox (works as root), on a .xsession file and on a .xinitrc file.

All those cases end up with the same error, and root can load just fine.

I agree is a permission problem, but I can't find the clue to what could be.
 
Old 12-28-2009, 12:16 PM   #13
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by Hammett View Post
I tried several ways to start XFCE:

Typing xfce-session on a terminal while on fluxbox (works as root), on a .xsession file and on a .xinitrc file.

All those cases end up with the same error, and root can load just fine.

I agree is a permission problem, but I can't find the clue to what could be.
well start checking the permissions from the start; home dir (owned by the user), /etc/xdg and other dirs (DBus, HAl and others).

here's some permissions from my system for reference

Code:
ls -l -a /etv/xdg
drwxr-xr-x  3 root root  4096 2009-12-05 12:53 ./
drwxr-xr-x 78 root root 12288 2009-12-28 20:01 ../
drwxr-xr-x  2 root root  4096 2009-12-15 17:33 autostart/
Code:
ls -l /home
drw---x--x 70 ozan users 4096 2009-12-28 20:02 ozan/
 
Old 12-28-2009, 12:40 PM   #14
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 671

Rep: Reputation: 94
Quote:
Originally Posted by ozanbaba View Post
Code:
ls -l /home
drw---x--x 70 ozan users 4096 2009-12-28 20:02 ozan/
this permission is wrong. fixed it now. 755 would be the right one
 
Old 12-28-2009, 04:25 PM   #15
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Original Poster
Rep: Reputation: 54
I have checked all this... Makes no difference at all... :S
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to start xfce4 satimis Linux - Distributions 3 04-01-2007 03:21 PM
xterm does not start as regular user aeruzcar Linux - General 1 05-31-2005 07:38 AM
MonoDevelop won't start as regular user nagromo Linux - Software 2 05-25-2005 01:48 AM
xfce4 won't start for a user hussar Slackware 4 04-08-2005 08:33 AM
How-to start wmaker/xfce4/fluxbox/fvwm as user Sader Slackware 6 03-11-2005 08:53 AM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration