Hello Frank,
I believe if you enable Kiosk mode, then the DTU has a session
with the temporary user and associated virtual devices in this
user's tmp directory. You can find the current temporary user
by parsing "utsession -p" output, for example.
# utsession -p
Token ID Registered Name Unix ID Disp State
------------------------------ -------------------- ---------- ---- -----
Payflex.500bc6eb00130100 jim utcu1 2 EA
Payflex.500bc6ec00130100 jim jim 4 D
pseudo.00144f85f8ff ??? utcu2 3 D
pseudo.080020f814b1 ??? utcu5 6 EA
In the example above the pseudo.* sessions are of the DTU
kiosks without a registered token. One session is currently
instantiated with "utcu2" user's credentials, on DISPLAY=:3
and it's disconnected (the DTU is probably used by a user
with a smartcard token). Another session of "utcu5" is on
DISPLAY=:6 and it's currently active.
Payflex* sessions are those with registered tokens (smart
cards). One is in kiosk mode and another is in a "regular"
mode with the Unix desktop.
Alternatively you can use "utsession -p -x" with extended
session info to find which user session is currently active
on a certain DTU:
# utsession -p -x | grep IEEE802.080020f8a169
INSERT_TOKEN=Payflex.500bc6eb00130100;TOKEN=Payflex.500bc6eb00130100;uid=utcu1;STATE=0;DISPLAY=2;SERVER=infra1;SESSION_TYPE=default;encryptUpType=ARCFOUR;encryptDownType=ARCFOUR;authenticateUpType=none;authenticateDownType=simple;securityMode=hard;TermPrimary=NULL;TermList=IEEE802.080020f8a169;MultiheadGroupName=NULL
The TermList part reports the session's active terminal(s)
and uid is the user name. An added bonus is that by grepping
for DTU MAC you automatically get one active session (or none
if the DTU is off or not kiosk'ed).
Audio device files are in /tmp/SUNWut/dev/utaudio/<number>
(there are also <number>ctl and <number>stat device files).
At the moment several accounts on my server have (own) more
than one audio device file triplet. Each of these files plays
white noise audio as I cat'ed /dev/random to it, so I wonder
why they proliferated like that :)
The audio device file of the disconnected session of my
DTU (while I'm in smartcard'ed session) does not play noise.
So your best bet is to:
1) know your DTU's mac or registered token ID
2) derive which "Token ID" you want to find in "utsession -p"
output (you may want "utsession -p -t token.value").
Mind "utsession -p -x" if you need the certain DTU.
3) parse the output and derive the Unix user name (you may
also want to check for *active* session states)
4) find which file under /tmp/SUNWut/dev/utaudio/ is owned by
that user name
5) Use that file as the audio device you need :)
HTH,
//Jim
Thursday, April 16, 2009, 3:04:09 PM, you wrote:
|
> |
Hi, is there a way to adress the sound device of a DTU even if no one is logged into this DTU ? -- |
Mit freundlichen Grüßen - Kind regards
Frank Paulick
-------------------------------------------------------------------
matrix technology AG
Consultant
Dipl.-Inf. (FH) Frank Paulick
Nymphenburger Str. 1, D-80335 München
Tel: +49 - (0)89 - 589395-0
Fax: +49 - (0)89 - 589395-11
Web: www.matrix.ag
E-mail: [email protected]
Vorstände: Franz Kessel und Martin Orlik
Aufsichtsratsvorsitzender: Jürgen Kretschmer
Amtsgericht München: HRB 133085
-------------------------------------------------------------------
E-Mail Disclaimer
Der Inhalt dieser E-Mail ist ausschließlich für den bezeichneten
Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie
bitte, dass jede Form der Kenntnisnahme, Veröffentlichung,
Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail
unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem
Absender der E-Mail in Verbindung zu setzen.
The information contained in this email is intended solely
for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any form
of disclosure, reproduction, distribution or any action taken
or refrained from in reliance on it, is prohibited and may be
unlawful. Please notify the sender immediately.
--
Best regards,
Jim Klimov mailto:[email protected]
_______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
