Mailinglist Archive: opensuse (626 mails)

< Previous Next >
Re: [opensuse] display managers, startx
  • From: Michael Fischer <michael@xxxxxxxx>
  • Date: Mon, 5 Nov 2018 07:28:09 -0500
  • Message-id: <20181105122809.bsgtofro72ialdgu@blinkenlights>
On Mon, Nov 05, Carlos E. R. wrote:
On 04/11/2018 18.17, Michael Fischer wrote:

I may have missed the story, and google didn't help (perhaps I used
the wrong incantation)


1) Is the *only* reason for deprecating `startx(1)` the setuid bit
If not, what are the other reasons?

No, there are other reasons.

For one thing, I understand it is little maintained.

As a consequence, it lacks certain modern features, like the concept of
"seat": the person that seats in front of the computer should have the
permission to use sound, the cdrom, external storage devices, etc.

The display manager handles giving those permission to the person that
logs in, without he needing to belong to the pertinent groups. If a
different person logs in, he gets the seat instead, and not the other
person - who in traditional usage with groups, he still holds the
permissions (normally both would have them).

Look, the sound devices:

cer@Telcontar:~> l /dev/snd/
total 0
drwxr-xr-x 3 root root 220 Oct 20 10:47 ./
drwxr-xr-x 22 root root 6480 Oct 21 02:35 ../
drwxr-xr-x 2 root root 60 Oct 20 10:47 by-path/
crw-rw----+ 1 root audio 116, 2 Oct 20 10:47 controlC0
crw-rw----+ 1 root audio 116, 7 Oct 20 10:47 hwC0D1
crw-rw----+ 1 root audio 116, 4 Oct 26 12:36 pcmC0D0c
crw-rw----+ 1 root audio 116, 3 Oct 28 09:37 pcmC0D0p
crw-rw----+ 1 root audio 116, 6 Oct 20 10:48 pcmC0D1c
crw-rw----+ 1 root audio 116, 5 Oct 20 10:48 pcmC0D1p
crw-rw----+ 1 root audio 116, 1 Oct 20 10:47 seq
crw-rw----+ 1 root audio 116, 33 Oct 20 10:47 timer

See the '+' at the end of the permissions?

cer@Telcontar:~> getfacl /dev/snd/controlC0
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/controlC0
# owner: root
# group: audio
user:cer:rw- <=======


My user, 'cer', has been granted extended access attribute.

If I switch to the text terminal (ctrl-alt-f1) and log in as root, the
extended attributes disappear. If on the graphic session I log on a
second simultaneous session as another user, that user gets the acls. If
I switch back to the first session, the first user gets the permissions

Thank you for the explanation and "demonstration". Heh, I've always (since
SuSE 6.0, I think) made adding myself to various groups, e.g. audio, a
part of the routine anytime I installed. And more recently, of course,
setting the perms on X. The above sort of explains why no one else ever
mentions doing these things in the past few years.

Michael Fischer

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups