chmod with shutdown

Hi,

If I want to change the permisions for shutdown and tried :

chmod o-rx shutdown
or chmod o-rx ./shutdown when I am in /bin I have got:

shutdown: Invalid argument …

BTW why we have in /bin and x86/bin 2 shutdown commands ?!? Who is
x86/bin …

Stefan

I’m just guessing here since I’m not at my RtP machine, but the underlying
O.S. (officially QNX6 using the Neutrino microkernel) supports multiple
platforms- Intel, PowerPC, and MIPS if I remember correctly (if I forgot a
family, I apologize). Therefor it’s been their practice to make “builds” of
the system containing separate directory trees for each of the various
processor types, then apply links from the more standard directory names
(/bin) to the actual processor specific directory trees (x86/bin, mips/bin,
and so on). This would allow you, providing you purchase a full-on
development seat, to develop on any platform for any platform without having
to worry about coopying an entire directory tree to the proper location. So
there aren’t really two copies of everything, there is only one copy that
you get to see twice. Do “ls -al” and you should see the links for /bin and
so on. Somewhere in all of their documentation, I recall seeing something
with regard to structuring projects for multiple architectures that you may
find fairly interesting. Unfortunately I’m not able to locate it for you at
the present time.

As for the error message, for some reason not discernable from the
information you have presented here, the system is running “shutdown” which
is complaining about an invalid argument. “chmod o-rx shutdown” would
normally run chmod, so unless you accidentally stuck a semicolon in there
before “shutdown” or made some other typing blunder, I’m afraid I don’t have
any idea of why it’s giving you grief.

-Warren



“Stefan Parvu” <sparvu@cc.hut.fi> wrote in message
news:3A0408F4.6BFEBF87@cc.hut.fi

Hi,

If I want to change the permisions for shutdown and tried :

chmod o-rx shutdown
or chmod o-rx ./shutdown when I am in /bin I have got:

shutdown: Invalid argument …

BTW why we have in /bin and x86/bin 2 shutdown commands ?!? Who is
x86/bin …

Stefan

Stefan Parvu a écrit :

Hi,

If I want to change the permisions for shutdown and tried :

chmod o-rx shutdown
or chmod o-rx ./shutdown when I am in /bin I have got:

shutdown: Invalid argument …

BTW why we have in /bin and x86/bin 2 shutdown commands ?!? Who is
x86/bin …

Stefan

Ok, the message is not so clear but I believe that you get this message
because the package filesystem is read only.
Mario Charest asked the question about that problem few weeks ago but I
didn’t see the answer.

Alain.

Warren Peece <Warren@nospam.com> wrote:

I’m just guessing here since I’m not at my RtP machine, but the underlying
O.S. (officially QNX6 using the Neutrino microkernel) supports multiple
platforms- Intel, PowerPC, and MIPS if I remember correctly (if I forgot a
family, I apologize). Therefor it’s been their practice to make “builds” of
the system containing separate directory trees for each of the various
processor types, then apply links from the more standard directory names
(/bin) to the actual processor specific directory trees (x86/bin, mips/bin,
and so on).

Exactly right…

The link from /bin to //bin and so on is going to be dynamic,
so that you can have a master file server that handles clients of all
different processor types, if you want to.

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:
: Stefan Parvu a écrit :
:> Hi,
:>
:> If I want to change the permisions for shutdown and tried :
:>
:> chmod o-rx shutdown
:> or chmod o-rx ./shutdown when I am in /bin I have got:
:>
:> shutdown: Invalid argument …
:>
:> BTW why we have in /bin and x86/bin 2 shutdown commands ?!? Who is
:> x86/bin …
:>
:> Stefan

: Ok, the message is not so clear but I believe that you get this message
: because the package filesystem is read only.
: Mario Charest asked the question about that problem few weeks ago but I
: didn’t see the answer.

Alain,

Thanks for highlighting this fact for me … the post
was lost in the noise of the newsgroups even though I
had a problem request open on the subject. It was a
bug in the PFS that it wouldn’t allow you to make this
modification to the file. It has been fixed and should
be available in the upcoming patch.

In the meantime you will have to manually spill the
file (touch /bin/shutdown) and then you should be able
to chmod it to you hearts content. Additionally once
you do this, you will notice that the entry in /x86/bin
reflects the same changes.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf

Hi back,

So thanks for answer. So anyway every file in /bin or /usr/bin are under
package management system ?
I am a bit confused … Aren’t the files just installed under /bin or
whatever directory as normal UNIX files?

Stefan


Thomas Fletcher wrote:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
: Stefan Parvu a écrit :
:> Hi,
:
:> If I want to change the permisions for shutdown and tried :
:
:> chmod o-rx shutdown
:> or chmod o-rx ./shutdown when I am in /bin I have got:
:
:> shutdown: Invalid argument …
:
:> BTW why we have in /bin and x86/bin 2 shutdown commands ?!? Who is
:> x86/bin …
:
:> Stefan

: Ok, the message is not so clear but I believe that you get this message
: because the package filesystem is read only.
: Mario Charest asked the question about that problem few weeks ago but I
: didn’t see the answer.

Alain,

Thanks for highlighting this fact for me … the post
was lost in the noise of the newsgroups even though I
had a problem request open on the subject. It was a
bug in the PFS that it wouldn’t allow you to make this
modification to the file. It has been fixed and should
be available in the upcoming patch.

In the meantime you will have to manually spill the
file (touch /bin/shutdown) and then you should be able
to chmod it to you hearts content. Additionally once
you do this, you will notice that the entry in /x86/bin
reflects the same changes.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com > Neutrino Development Group
(613)-591-0931 > http://www.qnx.com/~thomasf

you will have to manually spill the
file (touch /bin/shutdown) and then you should be able
to chmod it to you hearts content.

did. Is not working.

touch /bin/shutdown
the same message, the same error.


Thomas Fletcher wrote:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
: Stefan Parvu a écrit :
:> Hi,
:
:> If I want to change the permisions for shutdown and tried :
:
:> chmod o-rx shutdown
:> or chmod o-rx ./shutdown when I am in /bin I have got:
:
:> shutdown: Invalid argument …
:
:> BTW why we have in /bin and x86/bin 2 shutdown commands ?!? Who is
:> x86/bin …
:
:> Stefan

: Ok, the message is not so clear but I believe that you get this message
: because the package filesystem is read only.
: Mario Charest asked the question about that problem few weeks ago but I
: didn’t see the answer.

Alain,

Thanks for highlighting this fact for me … the post
was lost in the noise of the newsgroups even though I
had a problem request open on the subject. It was a
bug in the PFS that it wouldn’t allow you to make this
modification to the file. It has been fixed and should
be available in the upcoming patch.

In the meantime you will have to manually spill the
file (touch /bin/shutdown) and then you should be able
to chmod it to you hearts content. Additionally once
you do this, you will notice that the entry in /x86/bin
reflects the same changes.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com > Neutrino Development Group
(613)-591-0931 > http://www.qnx.com/~thomasf