Operating instructions
M300USERSGUIDE SEA
GENERALINFORMATION
37
determines if the image it's part of was booted from disk or from over the network. If the image was
booted from disk, ‘sinit’ checks to see if a normal boot or an alternate boot occurred.
The aforementioned QNX modular setup allows users to start system services after boot. The booted
image typically only contains the services needed to start the other services.
During a normal boot, sinit tries to boot from the ‘/etc/config/sysinit.node’ file. During an alternate
boot (from local disk only), ‘sinit’ tries to boot from the ‘/etc/config/altsysinit file’. If it can't boot
from either of those files, ‘sinit’ will try to boot from the ‘/etc/config/sysinit’ file.
If ‘sinit’ can't find or open a system initialization file, it terminates without initializing the system. If
the open succeeds, sinit replaces itself with the shell ‘/bin/sh’ and passes to it the name of the file that
‘sinit’ opened.
It is recommended to use the ‘/etc/config/sysinit’ file. This saves the work of having the right node
file configured for the system (is it ‘/etc/config/sysinit.1’ or ‘/etc/config/sysinit.2’, etc.).
CHANGINGYOURPASSWORD
The passwd utility is the focal point for password administration and access. It can be used to change
passwords or to add a new user account to the system. Anyone can change their own password, but
the superuser (root) is the only user who has the right to create or change other passwords. In both
cases, the passwd utility locks access to the user password file /etc/passwd to prevent any other
attempts to access the file while it's being modified.
1. If you are logged in as a user and you want to change your password, type passwd and you will
be prompted to change your password.
ADDINGUSERACCOUNTS
1. If you are logged in as root and you want to add a user, type passwd username at the command
prompt. The ‘username’ being the name of the user you wish to create. By default, passwd will
then prompt for the following information:
a.) User ID. User ID ranges are set in the ‘/etc/default/passwd’ file (101 or greater).
b.) Group ID (101 for SEA).
c.) User's real name.
d.) User's home directory. A default home directory of
/home/username is used (it's created if it
doesn't exist).
e.) Initial command. The default the shell startup command ‘/bin/sh’ is executed immediately
after the user logs in
f.) Initial password. User defined. If none is input, the account will be created without a pass-
word assigned to it.