You are not logged in.

#1 2012-02-05 07:55:11

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

[SOLVED]Problem with normal user account privileges

Hi All,

I have two accounts, root and a personal account. I use xfce4 with Arch.
In root account everything works fine - shutdown,reboot,suspend, all xfce4-power-manager options
but in the personal account none of the above works and everything is grayed out, I did some search and found a few solutions like
adding user to the power group using the command gpasswd -a <accountname> power, then to add dbus to /etc/rc.conf
I tried all, but none worked for me. Can some one help me out with this please ?

Thanks,
Nachi

Last edited by nachiappan (2012-03-14 16:53:48)

Offline

#2 2012-02-05 08:26:28

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Problem with normal user account privileges

Are you using ConsoleKit to launch your xfce session?

https://wiki.archlinux.org/index.php/ConsoleKit


Burninate!

Offline

#3 2012-02-05 16:53:51

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

@Gcool

No i am not using ConsoleKit, I manually launch xfce4 after login everytime

Offline

#4 2012-02-05 17:02:25

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Problem with normal user account privileges

Try using the command below when launching your Xfce session and see if that solves the issue (add it to your .xinitrc if it does).

exec ck-launch-session startxfce4


Burninate!

Offline

#5 2012-02-05 17:16:33

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

@Gcool
I tried installing Consolkit and launched XFCE session using the command
exec ck-launch-session startxfce4, this didnt make any difference.

Offline

#6 2012-02-05 17:32:43

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED]Problem with normal user account privileges

A quick search/look through the forums gave me the following result. Perhaps this can help in your situation as well.

https://bbs.archlinux.org/viewtopic.php … 0#p1014130


Burninate!

Offline

#7 2012-02-06 19:31:19

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

@Gcool,

I created two files as pointed out in the link, org.freedesktop.upower.pkla and org.freedesktop.consolekit.pkla
This doesnt seem to make any difference.
do i need consolekit installed and do i have to add ck-launch and dbus-launch in my xinirc ?

Last edited by nachiappan (2012-02-06 19:31:34)

Offline

#8 2012-02-07 20:29:18

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

I even tried adding ck-launch-session dbus-launch in my xinitrc.. this also didnt solve my problem
any other suggestions ?

Offline

#9 2012-02-07 20:50:28

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: [SOLVED]Problem with normal user account privileges

nachiappan wrote:

any other suggestions ?

https://wiki.archlinux.org/index.php/Xf … ithin_Xfce


You're just jealous because the voices only talk to me.

Offline

#10 2012-02-08 07:53:55

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

My /etc/rc.conf has the entry DAEMONS=(syslog-ng dbus networkmanager crond alsa gdm)
I have added my user to power group by the following command gpasswd -a <accountname> power
My /etc/skel/.xinitrc has the entry exec ck-launch-session startxfce4 -- Do I have to create one .xinitrc in my home also folder also ?
In my home directory I have .bashrc which has below to start xfce4 automatically
if [ "$(tty)" = "/dev/tty1" ] ; then
  startxfce4
fi

I guess, I have tried everything mentioned in the website.. Please let me know if any of my entries are wrong.

Thanks,
Nachi

Offline

#11 2012-02-08 07:59:14

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,682

Re: [SOLVED]Problem with normal user account privileges

nachiappan wrote:

My /etc/skel/.xinitrc has the entry exec ck-launch-session startxfce4 -- Do I have to create one .xinitrc in my home also folder also ?

Yes, the files in /etc/skel are just template files that are intended to be copied into your home directory
https://wiki.archlinux.org/index.php/Xi … ng_started

Offline

#12 2012-02-08 08:32:08

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

I tried making a copy of the .xinitrc in my home directory.. still doesnt make any difference..
will installing SLiM help ? or any other suggestions ?

Thanks,
Nachi

Offline

#13 2012-02-08 08:36:59

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,682

Re: [SOLVED]Problem with normal user account privileges

nachiappan wrote:

In my home directory I have .bashrc which has below to start xfce4 automatically
if [ "$(tty)" = "/dev/tty1" ] ; then
  startxfce4
fi

Did you try changing your .bashrc to

if [ "$(tty)" = "/dev/tty1" ] ; then
  startx
fi

https://wiki.archlinux.org/index.php/Start_X_at_Boot

Last edited by skunktrader (2012-02-08 08:38:27)

Offline

#14 2012-02-08 18:32:36

nachiappan
Member
From: Raleigh, NC
Registered: 2011-11-13
Posts: 25

Re: [SOLVED]Problem with normal user account privileges

Great Thanks.. now things look fine, shutdown, reboot options are active and working.. Thanks Again..
What is the difference between startx and startxfce4 ? Just wanted to know the difference for the purpose of understanding.
Also what is the purpose of bashrc file and xinitrc file ?

Last edited by nachiappan (2012-02-08 18:38:35)

Offline

Board footer

Powered by FluxBB