Hi Marco.

 > Testing the script suggested from Riley Williams and Shawn
 > T. Rutledge, I have been able to use a panel icon to launch
 > my JNOS 1.11e.

Good.

 > I did the following:

 > ---script text---
 > #!/bin/bash
 > cd /jnos
 > exec xterm -e ./jnos -g2 -fnos.cfg
 > ----end---

 > I saved this text file into /usr/local/bin/xjnos,then I
 > gave it the permission: chmod a+rx /usr/local/bin/xjnos
 > (Riley:the 0755 value seems not ok for me!).

The 0755 value would result in a long directory listing showing
the value -rwxr-xr-x for the permissions field. From an execution
point of view, a+rx sets the important permissions, but from a
security point of view, you need to ensure that the w permissions
are correct as well.

 > Then I pick a panel icon from gnome xterm panel,named it
 > "jnos" and inserted the /usr/local/bin/xjnos into the
 > "Command" window.

 > Note I do not used "run in terminal" since by doing this I
 > obtained two terminal windows,one named "xjnos" (empty)and
 > the second named "jnos" containing the program.

That's correct - the line beginning "exec xterm" says to replace
the current shell with a copy of xterm running the command after
the -e and xterm starts its own terminal window.

 > Now I have a full operative JNOS launchable by a panel
 > icon.

 > I dont know if the fact I get two terminal windows was
 > caused by the "run in terminal" checkbox selected or by the
 > numeric chmod 0755 I tested.

The chmod doesn't affect that - in this case, the script by
design starts its own window, as stated above, so ticking the
checkbox would cause the effect you specified.

 > About this option,I red that chmod should be 3 numbers:
 > u,g,o user,group,others,so it would be 755 (?).

It can be three or four numbers, and if four are specified, the
left hand digit specifies the security bits. For this task, you
definately want the security bits cleared, so 0755 specifies
exactly what is required.

To check this, do a long directory listing with `ls -l xjnos` and
check the permissions field (the left hand one). If there are any
's' characters in there, you have a probable security problem. As
stated above, the correct value is "-rwxr-xr-x" and is guaranteed
with 0755 as the value.

Best wishes from Riley GM7GOD / KB8PPG.

---
 * God Made 7 Greedy Old Devils
 * Kilroy Bought 8 Personal Pregnancy Guides

Reply via email to