Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-09 Thread Rui Miguel Silva Seabra
Em 06-09-2010 19:05, Timo Juhani Lindfors escreveu:
 Rui Miguel Silva Seabra r...@1407.org writes:
 I expect that would be more because it tries to read /dev/input/event3
 (or 4 or both) and perhaps doesn't have enough privileges?
 
 No it's because it uses the accelerometer which is a LED device and
 thus chown/chmod can not be used to grant permissions.

chgrp and chmod appear to work, or I'm not understanding what you mean?

r...@om-gta02 ~ # ls -laF /dev/input/event3
crw---1 root root   13,  67 Jan  1  1970 /dev/input/event3
r...@om-gta02 ~ # chgrp disk /dev/input/event3
r...@om-gta02 ~ # ls -laF /dev/input/event3
crw---1 root disk   13,  67 Jan  1  1970 /dev/input/event3
r...@om-gta02 ~ # chgrp root /dev/input/event3
r...@om-gta02 ~ # chmod g+rw /dev/input/event3
r...@om-gta02 ~ # ls -laF /dev/input/event3
crw-rw1 root root   13,  67 Jan  1  1970 /dev/input/event3
r...@om-gta02 ~ # chmod g-rw /dev/input/event3
r...@om-gta02 ~ # ls -laF /dev/input/event3
crw---1 root root   13,  67 Jan  1  1970 /dev/input/event3



 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-09 Thread Sebastian Krzyszkowiak
On Mon, Sep 6, 2010 at 20:05, Timo Juhani Lindfors timo.lindf...@iki.fi wrote:
 Rui Miguel Silva Seabra r...@1407.org writes:
 I expect that would be more because it tries to read /dev/input/event3
 (or 4 or both) and perhaps doesn't have enough privileges?

 No it's because it uses the accelerometer which is a LED device and
 thus chown/chmod can not be used to grant permissions.

I think you mean vibrator, which is controlled by sysfs interface.

-- 
Sebastian Krzyszkowiak
dos

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-09 Thread Timo Juhani Lindfors
Rui Miguel Silva Seabra r...@1407.org writes:
 chgrp and chmod appear to work, or I'm not understanding what you mean?

I was talking about vibrator sorry.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-06 Thread Rui Miguel Silva Seabra
Em 06-09-2010 10:01, Timo Juhani Lindfors escreveu:
 Hi,
 
 just out of curiosity I tried running Xorg as non-root. I was
 surprised that it worked since this does not seem to be advertised
 anywhere. So, consider yourself informed!
 
 Details are at
 
 http://lists.debian.org/debian-x/2010/09/msg00091.html

This is awesome, and a good step to remove a lot of risk. Only problem
in shr is the whole lotta stuff that still needs to be fixed (eg, the
opim stuff *should* move to $HOME/.config/freesmartphone/opim rather
than /etc/freesmartphone/opim ), samething for alsa statefiles, etc...

Rui

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-06 Thread Timo Juhani Lindfors
Rui Miguel Silva Seabra r...@1407.org writes:
 This is awesome, and a good step to remove a lot of risk. Only problem
 in shr is the whole lotta stuff that still needs to be fixed (eg, the
 opim stuff *should* move to $HOME/.config/freesmartphone/opim rather
 than /etc/freesmartphone/opim ), samething for alsa statefiles, etc...

I've been happily running all my X clients as non-root for more than a
year. I have seen problems only with applications that are
specifically written for openmoko (e.g. mokomaze)...


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-06 Thread Rui Miguel Silva Seabra
Em 06-09-2010 16:04, Timo Juhani Lindfors escreveu:
 Rui Miguel Silva Seabra r...@1407.org writes:
 This is awesome, and a good step to remove a lot of risk. Only problem
 in shr is the whole lotta stuff that still needs to be fixed (eg, the
 opim stuff *should* move to $HOME/.config/freesmartphone/opim rather
 than /etc/freesmartphone/opim ), samething for alsa statefiles, etc...
 
 I've been happily running all my X clients as non-root for more than a
 year. I have seen problems only with applications that are
 specifically written for openmoko (e.g. mokomaze)...

I expect that would be more because it tries to read /dev/input/event3
(or 4 or both) and perhaps doesn't have enough privileges?

Rui

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: running Xorg as non-root (with xserver-xorg-video-fbdev)

2010-09-06 Thread Timo Juhani Lindfors
Rui Miguel Silva Seabra r...@1407.org writes:
 I expect that would be more because it tries to read /dev/input/event3
 (or 4 or both) and perhaps doesn't have enough privileges?

No it's because it uses the accelerometer which is a LED device and
thus chown/chmod can not be used to grant permissions.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community