edoli who, kai users
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu Mar 9 23:15:44 EET 2006
On 2006-03-09 22:42, "m65 at vivodinet.gr" <m65 at vivodinet.gr> wrote:
> Loipon...epidi den xero ti simeni asfaleia, eheis dikio, giati spoudasa
> oikonomika, kai epidi parolafta matheno kai gia afta ta
> themata...asfaleias, alla kai gia alla polla, sou paratheto to IRC
> dialogo pou eixa, kati pou poli tha katalaveis poso dramatika, ma poli
> dramatika eitan axristes oles oi paremvaseis sou...kai to mono pou
> itheles na apodixis itan oti apla den exeis na kaneis kati sovaro...
Exo na kanw kati sobaro. Den se afora h douleia mou, oute exei sxesh me
to ti pisteueis oti kanei to KDE soy. Opote asthn apeksw.
> To proto, einai ligo aplo alla dixni oti kai o anthropos pou trexei
> gentoo paraxeneftike, pistevo...o defteros dialogos exei to zoumi pou se
> vgazi apo tin aporia....Read and...silence...
Oxi akribws.
> * Du sprichst jetzt in #KDE
> m6s hello people
> Opio 'sup
> m6s can anyone explain me something about kded?
> Opio if anyone besides me is awake and we know .....
> Opio then yes.
> m6s I noticed after months of running kde, that I had 2 logons
> m6s what I mean...
> m6s 1. boot pc, 2.enter X 3. start a terminal from kde
> m6s i run who or users command
> m6s and I see three (!!!) logins!!!!
> m6s one for X
> m6s one as pts/0
> m6s one as pts/1 which IS the current terminal
> Opio That is probably odd ..... uptime here is 22 days
> m6s the problem is that with ps, there IS NOWHERE the pts/0 process
> Opio (been logged into KDE 99% of that time ) .....
> Opio Only have one user on who or users ....
> m6s BUT
> m6s when I run lsof, I saw that kded
> m6s had a m6s user account opened for pts/0
> Opio Not sure why you're seeing that; can only tell you that I'm only
> seeing one user here.
> m6s so ... what's going on? what's the login for my X even if I hadn't
> kde? and what happenes with kded? SHouldn't I have only 2 logins? One
> the X and the terminal from the kde afterwards?
> m6s [m6s at localhost ~]$ who
> m6s m6s :0 Mar 9 19:04
> m6s m6s pts/0 Mar 9 19:04
> m6s m6s pts/1 Mar 9 19:21
> Opio I claim (based on looking at who and user on my system) that you
> should only have one login.
> m6s the first two ones, are in the same time opened!
> Opio gvaughan at morpheus ~ $ who
> Opio gvaughan tty1 Feb 16 14:08
> m6s do you run KDE?
> Opio What kernel are you running ?
> Opio Yeah, running it right now .....
> m6s 2.6.14
> Opio Yeah, running 2.6.15 here ......
> Opio How do you start X? With a daemon, or startx?
> the process of fedora core 3
> Opio running gentoo here ....
> m6s running gentoo ha?
> m6s lucky one :-)
To mono pou mporei na katalabei kapoios apo to parapanw einai oti esy
exeis fedora, oti blepeis ena "login record" sto /var/log/wtmp sou pou
exei ksemeinei apo to xdm/kdm/whatever ki oti zhleueis kapoion "Opio"
pou trexei Gentoo.
Poio apo ola auta exei sxesh me 'asfaleia' akribws?
Eisai sigouros oti exeis katalabei ti deixnei h entolh "who"? An nai,
ksereis ti einai "controlling terminal" se ena UNIX? An oxi, giati den
psaxneis pote ena process exei ws "terminal" to :0 kai giati? Me 5
lepta sto Google tha breis polla, pisteyw...
> KAI TO DEFTERO:
>
> * Du sprichst jetzt in #fedora
> * Das Thema f??r #fedora ist: Welcome to #fedora - The friendly Fedora 24
> Hour help desk. Enjoy ur stay! :)
> * Das Thema f??r #fedora wurde gesetzt durch passwd-!passwd at gawd.biz um
> Sat Feb 25 11:43:41 2006
> m6s anyone?
> znx m6s: whats the matter?
> * exploit_ hat die Verbindung getrennt (Remote host closed the connection)
> m6s 1.booting my fedora
> m6s 2.enter in the kde
> m6s 3.open a terminal
> m6s 4.run who, or run users
> znx ok
> m6s what do you see?
> znx i see 5 me's
> m6s hmmm
> m6s well close the 5 yous
> znx er ?
O znx parakseneyetai giati mpaineis fouriozos me yfos "ti kanei to KDE
sou? (apantaei autos) e oxi, mhn to afhneis na to kanei".
Apo pou akribws aporrei h au8entia soy sxetika me to ti prepei na kanei
o znx eipame?
> m6s simple
> m6s when I get in
> m6s and I have nothing more open than the terminal inside my kde
> m6s I see, 3 users
> znx ok.. thats fine
> m6s loged in with the who or users command
> m6s ?!?!?!?!??!fine?!??!?!?!?
> znx sure..
> znx type: w
> znx what does the WHAT say?
> m6s kded
> m6s kdeinit
> znx there you go
> znx kded = 1 .. kdeinit = 2 .. term = 3
Se bazei na trekseis 'w' kai sou zhtaei th sthlh "WHAT". Edw p.x. leei:
% $ w
% 11:05PM up 3:14, 1 user, load averages: 0.08, 0.09, 0.14
% USER TTY FROM LOGIN@ IDLE WHAT
% keramida v1 - 7:51PM 3:13 xinit /usr/X11R6/etc/xdg/xfce4/xinitrc -- -dpi 72
% $
Ti blepeis se ayto? Oxi exw kanei login sto termatiko ttyv1 kai ekei
etreksa thn entolh "startx", h opoia etrekse kapoia stigmh argotera to
programma "xinit" kai auto exei ksemeinei ekei... kai tha meinei osh wra
einai anoixta ta X11 moy.
Anoigw ena termatiko:
% $ w
% 11:07PM up 3:16, 2 users, load averages: 0.34, 0.16, 0.16
% USER TTY FROM LOGIN@ IDLE WHAT
% keramida v1 - 7:51PM 3:15 xinit /usr/X11R6/etc/xdg/xfce4/xinitrc --
% keramida p2 :0.0 11:07PM - w
% $
Blepeis kati diaforetiko? Ksereis giati? An oxi, epsakses na breis
kapoio keimeno, biblio, kok. pou na ekshgei giati, prin arxiseis na
xorophdas panw-katw fwnazontas "ME HACKEPSAN! ME HACKEPSAN!"? An den to
ekanes, giati?
> m6s it says, :0 startkde
> m6s pts/0 kded[kdeinit]
> m6s pts/1 w
> znx :0 = x
> znx type: w
> znx what does the WHAT say?
> m6s kded
> m6s kdeinit
> znx there you go
> znx kded = 1 .. kdeinit = 2 .. term = 3
> m6s it says, :0 startkde
> m6s pts/0 kded[kdeinit]
> m6s pts/1 w
> znx :0 = x
> znx so its .. kded = 1 .. startkde = 2 term = 3 then
> m6s yes I see that....
> m6s but...
> m6s since when kded opens an account
Den anoigei "account". Sto eipa hdh 2 fores. Auto pou blepeis sto
apotelesma ths entolhs "w" einai mia eggrafh se ena arxeio, opws p.x. to
``/var/run/utmp''.
Auto omws den apotelei oute asfales, oute egkyro, oute poy xrhsimo
pragma, afou mporei na allaksei eykola.
Sto laptop mou ayth th stigmh p.x. h entolh "w" deixnei:
$ w
11:11PM up 3:20, 1 user, load averages: 0.01, 0.07, 0.12
USER TTY FROM LOGIN@ IDLE WHAT
keramida v1 - 7:51PM 3:19 xinit /usr/X11R6/etc/xdg/xfce4/xinitrc -- -dpi 72
$
Auto einai entelws axrhsto otan thn amesws epomenh stigmh dei thn eksodh mias entolhs opws h ps(1) omws:
$ ps xu
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND |
keramida 1982 0.2 0.8 47452 4008 ?? Ss 10:11PM 0:03.47 fetchmail|
keramida 845 0.0 0.4 47796 2272 ?? Is 7:52PM 0:00.01 ssh-agent|
keramida 866 0.0 2.4 109284 12100 ?? Ss 7:52PM 0:03.38 xfce-mcs|
keramida 832 0.0 0.5 40408 2772 v1 I 7:51PM 0:00.03 -bash (ba|
keramida 848 0.0 0.3 37176 1400 v1 I+ 7:52PM 0:00.01 xinit /us|
keramida 853 0.0 0.3 37884 1476 v1 I 7:52PM 0:00.01 sh /usr/X|
keramida 864 0.0 1.4 82432 7152 v1 S 7:52PM 0:02.96 /usr/X11R|
keramida 870 0.0 1.9 84072 9988 v1 S 7:52PM 0:04.96 xfwm4 --s|
keramida 872 0.0 2.0 82612 10080 v1 S 7:52PM 0:06.50 xftaskbar|
keramida 874 0.0 2.7 85836 13728 v1 S 7:52PM 0:04.01 xfdesktop|
keramida 876 0.0 2.3 95360 11748 v1 S 7:52PM 0:08.73 xfce4-pan|
keramida 878 0.0 3.7 130132 19176 v1 S 7:52PM 0:16.04 gaim --s|
keramida 2079 0.0 1.9 86596 9696 v1 S 10:19PM 1:04.38 xmms |
keramida 2389 0.0 0.3 37884 1572 v1 I 10:51PM 0:00.02 /bin/sh /|
keramida 2393 0.0 0.3 37884 1588 v1 I 10:51PM 0:00.01 /bin/sh /|
keramida 2397 0.0 12.0 198036 61372 v1 S 10:51PM 0:07.04 /usr/X11|
keramida 899 0.0 0.3 39180 1792 p1 Ss+ 7:53PM 0:00.06 screen -a|
keramida 1829 0.0 0.6 40408 2908 2 Is+ 9:53PM 0:00.06 -/usr/loc|
keramida 2109 0.0 0.6 40408 2924 1 Ss 10:23PM 0:00.06 -/usr/loc|
keramida 2379 0.0 0.9 45820 4580 1 T 10:50PM 0:00.25 mutt |
keramida 2431 0.0 0.3 37884 1496 1 T 10:59PM 0:00.00 sh -c nem|
keramida 2432 0.0 2.8 19416 14512 1 T 10:59PM 0:05.06 /home/ker|
keramida 2543 0.0 0.2 37468 1080 1 R+ 11:11PM 0:00.00 ps xu |
$
Twra mporeis na mou peis giati ayth h psyxwsh me to "who" kai to "w"?
Kai afou se exei piasei tetoia mania, giati den pas na breis kati pou na
ekshgei *AKRIBWS* ti kanoyn autes oi entoles, para skotizeis ta paparia
tou athwoy kosmoy sto IRC?
> [snip irc log]
Bres kapoio kalo eisagwgiko biblio gia UNIX. Sto www.tldp.org exei ena
swro pragmata pou mporeis na diabaseis, diathesima se HTML, PDF, plain
text, eleythera gia opoiondhpote thelei na ta parei, kai kuriws pio
xrhsima apo otidhpote tha sou pei kapoios tyxaios se ena tyxaio kanali
enos tyxarpastoy IRC diktyoy.
More information about the Linux-greek-users
mailing list