Operation Not permitted

HI


What do we do to get our own application files to run when we keep getting
"OPERATION NOT PERMITTED " response from QNX 4.25 ?

We have copied files from floppy disk onto hard disk as user root and there
is no way we can execute these
files without an “OPERATION NOT PERMITTED” being returned.

We have “chmod 777” all files and directories as root and examined the
flags of the files and they all seem
to be OK ? What more do we have to do ? — Is the User lacking some
privilige ? Do we have to give
the file more priviligies ? Is there a User Group privilige that has to
change ?

The User can execute all the system commands “ls” “sin” etc. but no user
applications .

Any ideas ?
Thanks

Bob Miles <rmiles@radamec.co.uk> wrote:
BM > HI


BM > What do we do to get our own application files to run when we keep getting
BM > "OPERATION NOT PERMITTED " response from QNX 4.25 ?

BM > We have copied files from floppy disk onto hard disk as user root and there
BM > is no way we can execute these
BM > files without an “OPERATION NOT PERMITTED” being returned.

BM > We have “chmod 777” all files and directories as root and examined the
BM > flags of the files and they all seem
BM > to be OK ? What more do we have to do ? — Is the User lacking some
BM > privilige ? Do we have to give
BM > the file more priviligies ? Is there a User Group privilige that has to
BM > change ?

BM > The User can execute all the system commands “ls” “sin” etc. but no user
BM > applications .

BM > Any ideas ?
BM > Thanks

Two quick questions. Are you trying to execute the commands as root too?
If not, will they work if youy execute them as root?

Also, are you trying to do direct hardware I/O via inp() & outp(), etc.?
If so, you need to have your applications linked with -T1.


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net

Hi

– Yes the applications work when logged in as root.

  • The history of this is that the applications in question worked OK on a
    QNX 4.24 machine and we
    have installed QNX 4.25 on another machine and are now trying to run the
    code. - This is when the
    OPERATION NOT PERMITTED first raised its ugly head.

Thanks

Bob



“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bgtspi$j7u$1@inn.qnx.com

Bob Miles <> rmiles@radamec.co.uk> > wrote:
BM > HI


BM > What do we do to get our own application files to run when we keep
getting
BM > "OPERATION NOT PERMITTED " response from QNX 4.25 ?

BM > We have copied files from floppy disk onto hard disk as user root and
there
BM > is no way we can execute these
BM > files without an “OPERATION NOT PERMITTED” being returned.

BM > We have “chmod 777” all files and directories as root and examined
the
BM > flags of the files and they all seem
BM > to be OK ? What more do we have to do ? — Is the User lacking
some
BM > privilige ? Do we have to give
BM > the file more priviligies ? Is there a User Group privilige that has
to
BM > change ?

BM > The User can execute all the system commands “ls” “sin” etc. but no
user
BM > applications .

BM > Any ideas ?
BM > Thanks

Two quick questions. Are you trying to execute the commands as root too?
If not, will they work if youy execute them as root?

Also, are you trying to do direct hardware I/O via inp() & outp(), etc.?
If so, you need to have your applications linked with -T1.


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net

Bob Miles <rmiles@radamec.co.uk> wrote:

  • The history of this is that the applications in question worked OK on a
    QNX 4.24 machine and we have installed QNX 4.25 on another machine and are
    now trying to run the code. - This is when the OPERATION NOT PERMITTED
    first raised its ugly head.

Some versions of QNX4.24 had a bug in which privity was not enforced;
this was fixed in 4.25; you should relink your necessary apps -T1.

Bob Miles <rmiles@radamec.co.uk> wrote:

Hi

– Yes the applications work when logged in as root.

  • The history of this is that the applications in question worked OK on a
    QNX 4.24 machine and we
    have installed QNX 4.25 on another machine and are now trying to run the
    code. - This is when the
    OPERATION NOT PERMITTED first raised its ugly head.

Thanks

Bob

You probably need to set the sticky bit (chmod u+s file), but remember
that by doing this, you are allowing non-root user to execute root
priviledged code.

Regards.



“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:bgtspi$j7u$> 1@inn.qnx.com> …
Bob Miles <> rmiles@radamec.co.uk> > wrote:
BM > HI


BM > What do we do to get our own application files to run when we keep
getting
BM > "OPERATION NOT PERMITTED " response from QNX 4.25 ?

BM > We have copied files from floppy disk onto hard disk as user root and
there
BM > is no way we can execute these
BM > files without an “OPERATION NOT PERMITTED” being returned.

BM > We have “chmod 777” all files and directories as root and examined
the
BM > flags of the files and they all seem
BM > to be OK ? What more do we have to do ? — Is the User lacking
some
BM > privilige ? Do we have to give
BM > the file more priviligies ? Is there a User Group privilige that has
to
BM > change ?

BM > The User can execute all the system commands “ls” “sin” etc. but no
user
BM > applications .

BM > Any ideas ?
BM > Thanks

Two quick questions. Are you trying to execute the commands as root too?
If not, will they work if youy execute them as root?

Also, are you trying to do direct hardware I/O via inp() & outp(), etc.?
If so, you need to have your applications linked with -T1.


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net

John Garvey <jgarvey@qnx.com> wrote:

Bob Miles <> rmiles@radamec.co.uk> > wrote:

  • The history of this is that the applications in question worked OK on a
    QNX 4.24 machine and we have installed QNX 4.25 on another machine and are
    now trying to run the code. - This is when the OPERATION NOT PERMITTED
    first raised its ugly head.

Some versions of QNX4.24 had a bug in which privity was not enforced;
this was fixed in 4.25; you should relink your necessary apps -T1.

And then there is that :slight_smile:

Hi John

-T1 Fixed it - thanks alot - would never have guessed it in a month of
Sundays !!!

Thanks again
Much Appreciated

Bob



“John Garvey” <jgarvey@qnx.com> wrote in message
news:bgvv89$79f$1@nntp.qnx.com

Bob Miles <> rmiles@radamec.co.uk> > wrote:

  • The history of this is that the applications in question worked OK on
    a
    QNX 4.24 machine and we have installed QNX 4.25 on another machine and
    are
    now trying to run the code. - This is when the OPERATION NOT PERMITTED
    first raised its ugly head.

Some versions of QNX4.24 had a bug in which privity was not enforced;
this was fixed in 4.25; you should relink your necessary apps -T1.