* [gentoo-dev] Restarting kde-programms of a normal users-session from a root account
@ 2005-09-28 17:34 wOmbad
2005-09-28 17:58 ` Ciaran McCreesh
2005-09-28 18:49 ` [gentoo-dev] " Duncan
0 siblings, 2 replies; 4+ messages in thread
From: wOmbad @ 2005-09-28 17:34 UTC (permalink / raw
To: gentoo-dev
Hi,
to completely apply the portrait screen orientation to my tff display i
usually run a little script (attached) as standart user. Yesterday i
build a hardware display orientation sensor connected via parallel port.
I wrote a little c program for polling the state. This has to be run as
root!
Does anybody know how to realize the same task as the script - but from
a root console?
Regards and Thank you in advance
wOmbad
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Restarting kde-programms of a normal users-session from a root account
2005-09-28 17:34 [gentoo-dev] Restarting kde-programms of a normal users-session from a root account wOmbad
@ 2005-09-28 17:58 ` Ciaran McCreesh
2005-09-28 18:49 ` [gentoo-dev] " Duncan
1 sibling, 0 replies; 4+ messages in thread
From: Ciaran McCreesh @ 2005-09-28 17:58 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 594 bytes --]
On Wed, 28 Sep 2005 19:34:22 +0200 wOmbad <wombad83@gmx.net> wrote:
| to completely apply the portrait screen orientation to my tff display
| i usually run a little script (attached) as standart user. Yesterday
| i build a hardware display orientation sensor connected via parallel
| port. I wrote a little c program for polling the state. This has to
| be run as root!
You should ask this on the gentoo-user list.
--
Ciaran McCreesh : Gentoo Developer (Vim, Shell tools, Fluxbox, Cron)
Mail : ciaranm at gentoo.org
Web : http://dev.gentoo.org/~ciaranm
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-dev] Re: Restarting kde-programms of a normal users-session from a root account
2005-09-28 17:34 [gentoo-dev] Restarting kde-programms of a normal users-session from a root account wOmbad
2005-09-28 17:58 ` Ciaran McCreesh
@ 2005-09-28 18:49 ` Duncan
2005-09-28 19:51 ` Jan Kundrát
1 sibling, 1 reply; 4+ messages in thread
From: Duncan @ 2005-09-28 18:49 UTC (permalink / raw
To: gentoo-dev
wOmbad posted <433AD41E.2070209@gmx.net>, excerpted below, on Wed, 28 Sep
2005 19:34:22 +0200:
> Does anybody know how to realize the same task as the script - but from
> a root console?
While Ciaran's correct, this should have been posted to user, here's one
answer: emerge sudo (if necessary), and run sudo -u <username> script.
You may also want to look into configuring sudo so certain users may use
it to run certain commands as root (or other users), with or without
supplying their user password (NOT the root user password, which may not
be the best idea to give to users needing to run only one or two commands
as root). Groking all the config options can be a bit complex (nothing a
C programmer shouldn't easily master), but sudo can be tremendously
useful, once it's setup correctly, helping one avoid the fat-finger danger
(as well as the security danger) of logging in as root unnecessarily.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-28 19:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 17:34 [gentoo-dev] Restarting kde-programms of a normal users-session from a root account wOmbad
2005-09-28 17:58 ` Ciaran McCreesh
2005-09-28 18:49 ` [gentoo-dev] " Duncan
2005-09-28 19:51 ` Jan Kundrát
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox