Vasi Guta <vguta@cc.nuclear.ro> wrote:
David Gibbs wrote:
Vasi Guta <> vguta@cc.nuclear.ro> > wrote:
Problem running programs logged as regular user
I am using QNX 4.25 installed directly from QNX4 Product Upgrade CD (June 2000CD).
I log as regular user, create a simple C source code file, compile it;
when I try run the program I receive de message: Operation not permitted.
The permissions for the program are rwxrwxr-x.
There is no personal profile, the default profile launch SHELL=/bin/sh.
Please indicate me where is the wrong setting?
What compile flags did you use when compiling it? Did you use/copy
in a makefile? In particular, did you include a -T1 flag?
-David
Yes, I did use -T1.
-T1 programs can only be run by super user.
This is the content of my Makefile:
sou = progname
$(sou): $(sou).o
cc -o $(sou) $(sou).o -T1
$(sou).o: $(sou).c
cc -c $(sou).c
The directory I am in is /home/user.
BUT, if I follow the same steps on a computer running QNX 4.25
updated from QNX 4.24, there is no problem, I can run the program
I compiled with tis Makefile.
There was a bug in some earlier versions of QNX where it didn’t enforce
root before giving I/O access (which is what -T1 requests).
If you updated a 4.24 to 4.25, but still see this behaviour, you
have completed your update. I would expect that if you did a
“sin ver” it would still report you Proc as some flavour of 4.24.
You need to build a new boot image, and replace your current boot
image with the updated one. This should be covered in the
Installation & Configuration manual.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.