Every user must run a specific program with another user, by default

Started by mahesh, Sep 20, 2023, 07:04 AM

Previous topic - Next topic

mahesh

We are "userA", "userB" and "userC" and we want DOSBox run with user "DOS" for anyone of us.

So, I do this:

    Code:
useradd DOS
passwd DOS
mkdir /home/DOS
chown DOS:DOS /home/DOS
chmod u+s /home/DOS
chmod g+s /home/DOS
chmod a+s /home/DOS

chown DOS:DOS /usr/bin/dosbox
chmod u+s /usr/bin/dosbox
chmod g+s /usr/bin/dosbox
chmod a+s /usr/bin/dosbox

and then I run dosbox.
I get
     Code:
DOSBox version 0.74-3
Copyright 2002-2019 DOSBox Team, published under GNU GPL.
---
No protocol specified
No protocol specified
No protocol specified
Σφάλμα κατάτμησης (segmentation fault) (core dumped)

Am I following the correct procedure?
With other words, the problem is in dosbox or before keyboard?