Log into Photon
phlogin [options] phlogin2 [options]
If the -L option is present, -O is the default; -R if not.
The phlogin and phlogin2 utilities are typically used for nodes that boot directly into Photon or for users who start Photon via a phindows or phditto session.
|You can't start these utilities from the command line -- the server runs it automatically when starting Photon without the LOGNAME environment variable set, or when tinit is executed with the -p option. To pass command line arguments to phlogin or phlogin2, use Photon's -l option.|
The phlogin utility prompts the user to enter a userid and optional password through the Photon Login dialog. The phlogin2 utility is a simplified alternative to the phlogin utility. In either utility, the user can also click on an Exit or Shutdown button to return to the text-mode console (this runs phlogin or phlogin2 with the -S shutdown command). To prevent users from exiting to text mode, you can disable this button by setting the PHEXIT_DISABLE environment variable to 1.
You can create a configuration file that specifies command line arguments for your shell to run as a login shell. You might want to do this if you require your .profile script to run, for example. The configuration file must have the same name as the shell, and be located in these folders, searched in this order:
The configuration file can contain any number of blank lines and comments, followed by a single line of command-line arguments for your shell, including argv. Arguments must be separated by white space. Lines starting with # are comments. The path to ph is appended to the arguments. You can use a backslash to escape a white space character, a backslash, or the # character.
The default is:
This is equivalent to running your shell with:
There is no way to specify an empty argument.
The pathname of the ph script is always appended as a separate argument. There is no way to glue it to some other string to form a single argument.
You can pass command line options to phlogin or phlogin2 when you start Photon by using the -l option. For example:
Photon -l 'phlogin -S "myshutdown -v"'
will cause Photon to run phlogin -S "myshutdown -v".
These environment variables affect phlogin and phlogin2:
login, ph, tinit
Logging In, Logging Out, and Shutting Down and Managing User Accounts in the Neutrino User's Guide