No write permissions in /bin

Hey guys!

I’m brand new to QNX but have plenty of Linux experience. My problem
lies in that I do not have access to write to files in the /etc,
/bin, /sbin directories. Those directories and files are all specified
in the ifs file with permissions of “0777” for now to be able to see if
it is a permissions problem. It’s being installed on a winsystems board
with a flash drive recognized as an IDE HD.

For example:
$ cd /bin
$ touch blah
blah: No such file or directory

I find it funny that it will not even tell me that I don’t have
permission to write. I am wondering if somehow in the ifs file QNX made
these directories immutable.

I have a directory with all the files that I want in the correct
directories. So $IMAGEDIR/etc has passwd, inetd.conf and $IMAGEDIR/bin
has mount, touch etc.

Regardless I have the following in my ifs files:
[perms=0777]
/ = /image

I can read in the /bin dir but I cannot write. But if I create a /foo
dir I can write to it no problem. I’ve spent 3 days on this with no
luck any help would be appreciated.

Jevin Maltais

jevin11@hotmail.com wrote:

Hey guys!

I’m brand new to QNX but have plenty of Linux experience. My problem
lies in that I do not have access to write to files in the /etc,
/bin, /sbin directories. Those directories and files are all specified
in the ifs file with permissions of “0777” for now to be able to see if
it is a permissions problem. It’s being installed on a winsystems board
with a flash drive recognized as an IDE HD.

When you build an image with mkifs, it creates an in-RAM read-only
filesystem. All the files you include may be aliased to different
locations, but really they are in the special “/proc/boot” space.

Since you are working with something that is, basically, and IDE
drive, you’ll want to build a boot image similar to what you might
for a desktop, and have the minimum possible in the .ifs file to
bring up the disk driver, and then have all the files on the
flash drive, in the normal locations.

Hope this helps to clarify a bit.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com