You are not logged in.
Hello,
I was just setting up a new pc and noticed that Arch uses systemd now. I installed e17 and I just want to get a regular user the ability to mount and unmount drives. I also want to give them to be able to power off the machine. I installed slim and it the computer will now boot to the slim login menu. What is the procedure to get permissions working?
Last edited by mich04 (2013-09-16 02:18:58)
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
Woops unmounting and mounting seem to be working, I am just having a problem with e17's suspend, reboot, power off options. They are greyed out when I am signed on as a regular user but work just fine when I am signed in as root.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
I'd suggest you search the forums a bit more, as there are tonnes of posts about issues with particularly slim and other wm's having greyed out shutdown, etc. buttons. Not all are solved either.
edit: I still have E17 installed on my desktop but seldom use it. I just tried it out now and there are no problems with shutdown, reboot, etc. on my end. I use xdm with xdm-archlinux theme, not slim, so that may indeed be your problem.
Last edited by bgc1954 (2012-11-17 19:10:11)
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
There's a list of groups in /etc/enlightenment/sysactions.conf. If your user isn't a member of one of those groups, you won't be able to use the power options.
Offline
@Scimmia: There's nothing special in my /etc/enlightenment/sysactions.conf and I'm not in any group other than users so I don't think that will help the OP, IMHO.
Last edited by bgc1954 (2012-11-17 19:57:11)
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
bgc1954, that file is all about giving permissions for various system actions, it could very easily be the OP's issue. The default is set to deny permission for any system actions unless given specific permission either as a named user or part of a named group. I know my suspend/hibernate/shutdown/etc were greyed out when I removed myself from most groups after upgrading to systemd.
Offline
Scimmia - I apologize as I just checked my groups and I was still a member of the wheel group--although I don't remember doing that, but my installation is several years old. When I took myself out of the wheel group my shutdown, etc buttons were indeed greyed out so the systemd wiki isn't quite correct when it says that you don't have to be in any groups anymore.
edit: so the OP has the option to edit the /etc/enlightenment/sysactions.conf or just add him/herself to the wheel group, I guess.
Last edited by bgc1954 (2012-11-17 21:08:17)
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
I had the same problem with e17 and added a line
user: myusername allow: *
to that file /etc/enlightenment/sysactions.conf
and that did the job for me. I found that I think on this forum or somewhere on google, it was only a few days ago, but don't exactly remember where.
Last edited by Dude-man (2012-11-17 22:11:51)
Offline
That did not work here is my conf file now.
user: family allow: halt reboot suspend hibernate
action: halt /sbin/shutdown -h now
action: reboot /sbin/shutdown -r now
action: suspend /usr/sbin/pm-suspend
action: hibernate /usr/sbin/pm-hibernate
action: /bin/mount /bin/mount
action: /bin/umount /bin/umount
action: /usr/bin/eject /usr/bin/eject
user: root allow: *
group: operator allow: *
group: staff allow: *
group: admin allow: *
group: sys allow: *
group: wheel allow: *
group: adm allow: *
group: dialout allow: *
group: disk allow: *
group: adm allow: *
group: cdrom allow: *
group: floppy allow: *
group: audio allow: *
group: dip allow: *
group: plugdev allow: *
group: netdev allow: *
group: bluetooth allow: *
group: video allow: *
group: voice allow: *
group: fax allow: *
group: tty allow: *
user: * deny: *
I tried giving user all the power as well with the
user: family allow: *
Before when I had this problem I added consolekit in the initab with slim, but now arch uses systemd which I am not familier with. Any other ideas, I have been reading searching other post believe me. With the changes in Arch, the solutions I have been finding are old and outdated.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
Assuming the username you're using is "family", I think we're back to bgc1954's solution. Ditch Slim for something like lxdm that's known to work well with logind.
Offline
if Its any help, I'm using lxdm as well, and it works no problem
Offline
I tried lxdm, and gdm both provide the same results. I also added my user to the group wheel.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
I also installed lxde with lxdm and booted up that desktop. I still do not have access to shutdown etc. I can mount all my drives just no power options.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
Getting back to basics, what's in your .xinitrc file when you had one for slim? What does
# systemctl status polkit.service
show you? Are you sure you're running a pure systemd system? Is your system fully up to date? Also maybe it's this: https://bbs.archlinux.org/viewtopic.php?pid=1187801
Edit: also, check to see that you have systemd-sysvcompat installed as it has the links to the shutdown, reboot options.
Last edited by bgc1954 (2012-11-18 16:21:17)
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
1. What I used to do
.xinitrc
exec enlightenment_start
slim.conf
login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session
systemctl status polkit.service
polkit.service - Authorization Manager
Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
Active: active (running) since Mon, 2012-11-19 06:45:47 CST; 4min 41s ago
Docs: man:polkit(8)
Main PID: 391 (polkitd)
CGroup: name=systemd:/system/polkit.service
└ 391 /usr/lib/polkit-1/polkitd --no-debug
I am running a pure systemd system. I was very confused when I could not find rc.d
systemd-sysvcompact is installed
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
So I installed Arch again yesterday on a new laptop and ran into the e17 no power option problem. Here is my solution.
these lines must be in.
/etc/enlightenment/sysactions.conf
action: halt /sbin/shutdown -h now
action: reboot /sbin/shutdown -r now
action: suspend /etc/acpi/sleep.sh force
action: hibernate /etc/acpi/hibernate.sh force
user: BOB allow: halt reboot suspend hibernate
I am running e17 with slim login. Sorry for resurrecting an old thread but it kept topping my google search.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline