I try to configure my OpenSuSE 11.4 64 bit with display manager SLIM and GNOME. I can log in to my account however I have issues with commands like mount or shutdown.
The standard way which I know is to add my user to* /etc/sudoers* file. This is what I did. When I execute “sudo -l” the I can see this:
Matching Defaults entries for rafal on this host:
always_set_home, env_reset, env_keep="LANG LC_ADDRESS LC_CTYPE LC_COLLATE
LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE",
targetpw
User rafal may run the following commands on this host:
(ALL) ALL
(ALL) NOPASSWD: /sbin/shutdown
(ALL) NOPASSWD: /bin/mount
however when I try to mount a disk I get this error:
rafal@linux-wfz6:~> /bin/mount /dev/sdb1 /mnt/usb
mount: only root can do that
hi,
yes…this works, however my point is this:
My GNOME should automatically mount new devices. Whenever I put the USB drive I get an error that I am not authorized. I guess this is because I cannot execute “mount” without “sudo” and whole path to the program.
GNOME has in menu “Shutdown”…when I press the button, I cannot shutdown my pc. This is a little bit annoying, therefore I would like to make it work
is there any way to authorize the user to execute “mount” or “shutdown” ?
hi
both are “true” …and I know that system automount works. the issue is that when GNOME tries to do automount I see message box that I am not authorized.
I see “Authetication is required”
regards
Rafal
Create a new user on your system, and see if it work for that new user.
Mounting a USB or CD or DVD works fine for me in KDE. I don’t normally use Gnome, but when I have occasionally tried it for testing purpose, mounting works fine there, too. In Gnome, the USB automatically mounts. In KDE, the device notifier pops up and I click something if I want it to mount (I prefer the KDE way).
Try with that new user account, so with brand new settings. If it works there, then there’s a problem in your own settings. If it doesn’t work there, then there is a system-wide problem.
Come to think of it, I normally login at the GUI. I’m not sure whether things break if using “startx”.
linux-wfz6:/home/rafal # /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
[1] 4082
linux-wfz6:/home/rafal #
(polkit-gnome-authentication-agent-1:4082): 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 '4082'
Is polkit-gnome-authentication-agent-1 running in the resulting session, but mounting still does not work (this would not surprise me)?
Or is polkit-gnome-authentication-agent-1 not even running? If it is not even running, then check “.xsession-errors” to see if there is an error message.
I am not surprised by the failure to start the gnome polkit agent at a root terminal. It needs to be started as part of your Xwindows session, and I am pretty sure that it is supposed to run as you rather than as root.
I meant when I add this line there is no difference. I do not see agent is running (like it is when I am using GDM).
I think it must have something to do how GDM and GNOME are started in OpenSuse
Please check a question I posted here: display manager start twice
When I want to used GDM I have to delete .xinitrc (or remove “gnome=session” there). Otherwise I get error like “could not aquire name on session bus”.
I don’t have an answer to the questions raised there.
I’m guessing that it is saying you should create a file in $HOME/.config/autostart and use that to start the polkit agent. And, yes, that should work.
I’m not sure whether the polkit agent problem is the only problem that you are having. You could try manually starting it from a terminal in your session, and see if it helps.
On 2012-10-07 16:16, rafdre wrote:
>
> Hi
> ok…I found the root cause though do not yet know how to solve it.
>
> the problem is that polkit-gnome-authentication-agent-1 is not running
>
> here what i see when I log in to gnome with SLIM:
…
> I guess I have to put more.
> can anybody advise how to start GNOME from xinitrc in clean way…so
> it will run like with GDM?
So, you are not using gdm; that’s the cause. In this thread here an
interesting idea came up: Back to
Basics With X and systemd. Although it mentions systemd, it might give you ideas. It is
about using startx in a new way.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
I try to configure my OpenSuSE 11.4 64 bit with display manager SLIM and GNOME.
SLIM is replacement for GDM. I do want to use GNOME, though I do not want to have GDM (in the previous OpenSuse releases when I installed blackbox I was able to log in to this window manager, with new Opensuse release using GDM I was not able anymore to do it by choosing a session in log in screen).
I will check the threads you mentioned though whe I quickly checked the first one this was something about audio.
Actually I had as well issue with audio when I switched to SLIM. There was no sound in the system. I solved it when I assigned my user to “Audio” group. Apparently this assignment is not necessary when GDM is used.
the solution was very simple
as usual I forgot about the simplest one.
here i used SLIM 1.3.3 which I compiled by myself
now I found SLIM 1.3.4 here : software.opensuse.org:
after I installed it, everything works as I wanted