Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Lancer une application au nom de qqn d'autre

6 réponses
Avatar
Saïd
Bonjour,

Est-il possible sous OS X (10.2.8) de lancer une application au nom du qqn
d'autre?
Par exemple (qui ne marche pas):

brian-~ $ sudo su dias
Password:
brian-/Users/said $ cd
brian-~ $ /Applications/Camino.app/Contents/MacOS/Camino
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the
WindowServer.zsh: abort /Applications/Camino.app/Contents/MacOS/Camino


comment laisser un aute utilisateur lancer une application graphique pendant
ma session? (une sorte xauth accordee a un autre mais pour aqua...)

--
Saïd.

6 réponses

Avatar
Schmurtz
Est-il possible sous OS X (10.2.8) de lancer une application au nom du qqn
d'autre?


Avec cette commande, ça devrait marcher :

sudo -u dias /Applications/Camino.app/Contents/MacOS/Camino &

--
Schmurtz

Avatar
Saïd
Schmurtz :
Est-il possible sous OS X (10.2.8) de lancer une application au nom du qqn
d'autre?


Avec cette commande, ça devrait marcher :

sudo -u dias /Applications/Camino.app/Contents/MacOS/Camino &



Non, malheureusement.

brian-~ $ sudo -u dias /Applications/Camino.app/Contents/MacOS/Camino &
[1] 1662
brian-~ $ kCGErrorIllegalArgument : initCGDisplayState: cannot map display
interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the
WindowServer.
[1] + abort sudo -u dias
/Applications/Camino.app/Contents/MacOS/Camino

--
Saïd.


Avatar
Patrick Stadelmann
In article ,
Saïd wrote:

Est-il possible sous OS X (10.2.8) de lancer une application au nom du qqn
d'autre?


Pas pour les appli graphiques : le serveur graphique n'accepte qu'un
seul utilisateur (exception pour root je crois).

Patrick
--
Patrick Stadelmann

Avatar
Saïd
Patrick Stadelmann :
In article ,
Saïd wrote:

Est-il possible sous OS X (10.2.8) de lancer une application au nom du qqn
d'autre?


Pas pour les appli graphiques : le serveur graphique n'accepte qu'un
seul utilisateur (exception pour root je crois).



Mais par quel moyen le serveur s'assure-t-il qu'une application appartient
a tel utilisateur? il fait un ps sur l'appli qui lui demande une connexion?

--
Saïd.


Avatar
thomas-ml
Saïd wrote:

Est-il possible sous OS X (10.2.8) de lancer une application au nom du qqn
d'autre?


MacOS 10.2.8 ne supporte la connexion que d'un utilisateur au
WindowServer. Peut-être est-ce possible avec le Fast User Switching de
Panther.

--
Thomas Deniau
"Unix is user friendly. It's just selective when choosing friends."

Avatar
Patrick Stadelmann
In article ,
Saïd wrote:

Mais par quel moyen le serveur s'assure-t-il qu'une application appartient
a tel utilisateur? il fait un ps sur l'appli qui lui demande une connexion?


C'est plutôt que le Window Server appartient à un utilisateur, et donc
il va refuser de communiquer avec les autres.

Patrick
--
Patrick Stadelmann