Permissions
Did you have permission to do this?
Permissions indicate what actions that your user or any of the other users are allowed or denied. They can be used to allow or deny users access to some features in the real-world systems. For example, in the filesystem permissions found in Linux systems, if your user isn't granted the execute permission for a specific file, trying to execute said file will give you the permission denied message, preventing the execution of this file.
Permissions in Nitrocid
In the simulated system, it only simulates the permission types that can be granted or denied to the users. These can be used to control the users what administrative actions they can do and what they can't. There is a permission editing facility that you can use by invoking the perm command.
You can do two things: allow and deny. However, if the target user is the administrator (their admin flag being set to true), all of the permissions, even unlisted, will be granted.
Examples
For example, consider the following cases:
Case 1: Permission management not granted
The below screenshot shows that the first normal user, johnSanders, can't manipulate the permissions because they don't have the permission management granted.

Case 2: Permission management granted
The below screenshot also shows the second non-administrative user, john.d, being granted the permission manipulation authority, so they can use the perm command to edit permissions for any user.

Usage
To use this utility, choose what you want to do with the target user's permissions and follow the steps below. You can consult the permissions list under the Advanced and Power Users category by clicking on the below link.
Operations
There are common operations that you can do to manage the permissions.
Grant permissions

You're looking to grant a user permissions. Follow these steps:
Log-in to the system account, root, or any of the administrators or users that has at least the permission management authority
Execute the
permcommand to grant the permissionThe full usage of the
perm allowcommand isperm <userName> <allow> <perm>
Log out of the user and log-in to the new user
Revoke permissions

If you no longer want a user to be granted a specific permission, follow these steps:
Log-in to the system account, root, or any of the administrators or users that has at least the permission management authority
Execute the
permcommand to revoke the permissionThe full usage of the
perm revokecommand isperm <userName> <revoke> <perm>
Log out of the user and log-in to the new user
Grant a permission to a group

You're looking to grant a user permissions. Follow these steps:
Log-in to the system account, root, or any of the administrators or users that has at least the permission management authority
Execute the
permgroupcommand to grant the permissionThe full usage of the
permgroup allowcommand ispermgroup <groupName> <allow> <perm>
Log out of the user and log-in to a user that is part of a group
Revoke a permission from a group

If you no longer want a group to be granted a specific permission, follow these steps:
Log-in to the system account, root, or any of the administrators or users that has at least the permission management authority
Execute the
permgroupcommand to revoke the permissionThe full usage of the
permgroup revokecommand ispermgroup <groupName> <revoke> <perm>
Log out of the user and log-in to a user that is part of a group
Note that your account must have either the administrative permissions enabled or the permission management permission granted to be able to use the manipulation commands.
Last updated