[glade--] Re: glademm-list Digest, Vol 10, Issue 8

Arthur <[email protected]> Sun, 20 Feb 2005 15:07:53 -0300
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============0134390990==
Content-Type: multipart/alternative;
	boundary="------------070401000300000203030904"

This is a multi-part message in MIME format.
--------------070401000300000203030904
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable


>su spawns a new (shell) process. This is a new Process, so its
>completely separated from the process it have been called. After the
>line system("su -") you program would be sleeping and the opened shell
>would not get any new commands like the call to your init script.
>
>Simple solution:
>Just pop up a box saying that the user has to start /etc/init.d/net.ath0
>start before using your program.
>
> =20
>
>>The root password should be typed in a entry box, let's say=20
>>'rootpasswordentry'. I know I could get it's text with=20
>>rootpasswordentry->get_text().
>>   =20
>>
>
>This does not help either since your box would ask the root passwort in
>the user process. su instead spawns the new process before asksing the
>passwort. This reduces the risk that the passwort gets keylogged.=20
>In fact program would be a root passwort sniffer which has to be
>rejected.
>
>
> =20
>
>>Any idea, guys? What do you recommend me to read? Should I continue wit=
h=20
>>Gtkmm 2.4 Book (it seems just like a reference book since the =C2=A8 "B=
utton"=20
>>chapter)?
>>   =20
>>
>
>Well your problem isnt gtkmm or glade based. But read on :)
> =20
>
>>   =20
>>
>
>Maybe you want to beek into Advanced UNIX Programming (2nd Edition):
>http://www.amazon.com/exec/obidos/tg/detail/-/0131411543/qid=3D110889147=
7/sr=3D8-1/ref=3Dpd_csp_1/002-2061515-3535227?v=3Dglance&s=3Dbooks&n=3D50=
7846
>
>Bye Gunther
> =20
>
Gunther, thank you for your answer. Indeed, the program is designed to=20
run "/etc/init.d/net.ath0" command, for example. For this command to=20
run, it is needed the root password. Have you ever seen Synaptic or=20
other program that needs to do a admin task and asks the root password?=20
That's what I want to do.

Thank you again.

Best wishes,
Arthur

--------------070401000300000203030904
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="[email protected]"
 type="cite">
  <pre wrap="">su spawns a new (shell) process. This is a new Process, so its
completely separated from the process it have been called. After the
line system("su -") you program would be sleeping and the opened shell
would not get any new commands like the call to your init script.

Simple solution:
Just pop up a box saying that the user has to start /etc/init.d/net.ath0
start before using your program.

  </pre>
  <blockquote type="cite">
    <pre wrap="">The root password should be typed in a entry box, let's say 
'rootpasswordentry'. I know I could get it's text with 
rootpasswordentry-&gt;get_text().
    </pre>
  </blockquote>
  <pre wrap=""><!---->
This does not help either since your box would ask the root passwort in
the user process. su instead spawns the new process before asksing the
passwort. This reduces the risk that the passwort gets keylogged. 
In fact program would be a root passwort sniffer which has to be
rejected.


  </pre>
  <blockquote type="cite">
    <pre wrap="">Any idea, guys? What do you recommend me to read? Should I continue with 
Gtkmm 2.4 Book (it seems just like a reference book since the &Acirc;&uml; "Button" 
chapter)?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well your problem isnt gtkmm or glade based. But read on :)
  </pre>
  <blockquote type="cite">
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Maybe you want to beek into Advanced UNIX Programming (2nd Edition):
<a class="moz-txt-link-freetext" href="http://www.amazon.com/exec/obidos/tg/detail/-/0131411543/qid=1108891477/sr=8-1/ref=pd_csp_1/002-2061515-3535227?v=glance&s=books&n=507846">http://www.amazon.com/exec/obidos/tg/detail/-/0131411543/qid=1108891477/sr=8-1/ref=pd_csp_1/002-2061515-3535227?v=glance&amp;s=books&amp;n=507846</a>

Bye Gunther
  </pre>
</blockquote>
Gunther, thank you for your answer. Indeed, the program is designed to
run "/etc/init.d/net.ath0" command, for example. For this command to
run, it is needed the root password. Have you ever seen Synaptic or
other program that needs to do a admin task and asks the root password?
That's what I want to do. <br>
<br>
Thank you again.<br>
<br>
Best wishes,<br>
Arthur<br>
</body>
</html>

--------------070401000300000203030904--

--===============0134390990==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
glademm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/glademm-list

--===============0134390990==--