-
Notifications
You must be signed in to change notification settings - Fork 8
Program Changes and Additions
##Logins There are two types of logins for SecureOS, 'user login' and 'super login/root login'. User login is handled at system boot and if a user uses the 'logout' command. This login type will place users in their respective home directory and insure files located in that users bin directory are loaded for system wide use until logout. Users with the proper permissions (set when the user account is created) can use 'sudo' to elevate their ability to modify the system.
If the 'logout' command is used, autorun programs will not be able to start until a user has logged in, this is to improve security of the system.
##Misc. There are various programs and scripts that have been modified or removed from what is found in 'OpenOS', those changes are listed below.
###'df.lua' 'df' now list time, date, and RAM usage, and supports a '-p' option to show power in the network. Power is shown by default for robots and tablets.
###Rebooting and shutting down
The 'reboot' command has been removed and aliased to 'shutdown -r'. Shutdown also supports a timed shutdown and reboot, measured in minutes unless '-s' option is used. Valid options are '-r' for reboot, and '-s' for seconds (a SecureOS touch). The argument 'now' can also be passed to 'shutdown' to shutdown or reboot the system immediately. Rebooting or shutting down does not require super rights (i.e. 'sudo') at this time. Syntax is shutdown [-rs] <time or now> [message]
.
###'adduser'
At this time, 'adduser' is kept separate from 'useradd', but may be combined in the future. 'adduser' supports command line arguments and a 'UI'. To access the UI, just pass the command 'sudo adduser'. The command line syntax is sudo adduser <username> <password> [true/false]
, the third argument is for super rights and is optional (default is false).
###'deluser'
At this time, 'deluser' is kept separate from, 'userdel', but may be combined in the future. 'deluser' supports command lines arguments and a 'UI'. To access the UI, just pass the comamnd 'sudo deluser'. The command line syntax is sudo deluser <username>
.
###'sudo' and 'su' 'sudo' is the primary way to gain super rights for a short term. 'su', which must be ran with 'sudo', is used to gain super rights until the command 'exit' is used.
###'update'
'update' is used to keep SecureOS update to date independently from OpenSecureity, the add-on that SecureOS is shipped with, from the default, or specified branch. 'update' must be ran with super rights and supports one option, option '-a' which will save the inputted branch to the config file to be used as the default branch, and two arguments, 'release' and 'dev'. Proper syntax is sudo update [-a] [branch]
.
###'whoami' (Added by SpiritedDusty) 'whoami' prints the current username to the shell.
###'edit' Using 'edit' to edit existing files will give you blue text in the edit window. (This was meant as a test for adding syntax highlighting, but I liked it, so I kept it like that :P)
###'logout' 'logout' is used to log the current user out of the system, returns the system to the primary login screen, and disables autorun programs.
###'passwd' 'passwd' allows users to change their passwords. It is UI driven and a near exact replica of *nix 'passwd'.