# Site preferences

The card **Admin preferences** on the [Admin](Users-Admin.md) tab holds the switches of a user that were there before roles: what an ordinary user may do with a few commands, and the older way to make an administrator. They are stored together in one value of the user, called `site`, and they still work on every server.

For a new administrator, use roles: [Giving a user roles](Users-Admin-Roles.md). This page is for servers that came from an earlier version, and for the switches that have nothing to do with administration.

## Switches for every user

| Switch | The user may | New server |
|---|---|---|
| **SITE PASS** | change their own password | on |
| **SITE DOT** | have items whose names begin with a dot hidden | on |
| **Allow password to be emailed if they forget it.** | ask for a password reminder on the login page | on |
| **SITE ZIP** | download a folder as one zip file | off |
| **SITE CHMOD**, **SITE CHOWN**, **SITE CHGRP** | change permissions, owner and group of their files, where the server's system has them | off |
| **SITE VERSION** | ask for the server's version | off |
| **SITE USERS** | ask who is connected | off |
| **SITE KICK**, **SITE KICKBAN** | end another user's session, and ban them | off |
| **SITE QUIT** | shut the server down | off |
| **SITE PLUGIN** | call a plugin by a command | off |
| **Allow Web Proxy**, **Allow Adhoc Web Proxy**, **Allow HTTP(s) Forward Proxy** | reach other web servers through this one | off |

The names come from FTP, where these are `SITE` commands. The switches hold on every protocol: **SITE PASS** also decides whether the web interface offers "change password".

## Remote Server Administration (Everything)

On: the user is a full administrator, of everything. While it is on, the older admin flags below are cleared and cannot be set: they would add nothing.

## Setup Roles

Opens the older admin flags of this user. Each gives one part of the administration:

| Group | Flags |
|---|---|
| alone, at the top | **Remote User Only Administration (Limited)**: a [limited administrator](Users-Admin-Limited.md) of one group |
| **User** | View all users; View and edit users |
| **Job** | View job list; View job history; View job configurations; Monitor jobs; Run jobs; View, run, and edit jobs |
| **Report** | View report configurations; View and run reports; View, run, and edit reports |
| **Shares** | View shares (TempAccounts); View and edit shares (TempAccounts) |
| **Preferences** | View server preferences; View and edit preferences |
| **Server** | View server logs (.log files); View server status; View status and run server actions; Run server self update |
| **Telnet** | Telnet testing tool |
| **Dump Thread List** | Dump thread list |

The dialog keeps the flags consistent:

- A larger flag includes the smaller ones and locks them: "View and edit users" ticks "View all users", with the note "Required by …".
- "View, run, and edit jobs" turns "Monitor jobs" off.
- With **Remote User Only Administration (Limited)** on, only the job and report flags and Telnet can be set beside it.
- All flags at once are refused: "You can't select all items while setting up permissions". That is what **Remote Server Administration (Everything)** is for.

> [!WARNING]
> "View and edit preferences" is as good as full administration: who can change the preferences can give themselves everything else.

## Setup Permissions (limited admin only)

The button is live for a user with **Remote User Only Administration (Limited)**. It decides which settings of their users the limited administrator may see and change. "If nothing is selected it will allow modifying all items."

The list has a filter and these groups, which follow the tabs of the User Manager:

| Group | What can be allowed |
|---|---|
| **User manager actions** | Batch updating |
| **Menu actions** | Create user; Delete user; Modify inheritance |
| **Setup** | the account, user name, password, phone, e-mail and names, the second factor, sending the login by mail, the VFS, VFS quotas, VFS linking |
| **Settings** | every limit of the Settings tab: times, speeds, amounts and counts, the quota, the keys |
| **Restrictions** | expiry of account and password, logins, days and hours, IP restrictions, protocols, encryption, SSH keys, PGP keys, content restriction |
| **Admin** | SITE; Administer group; the password rules |
| **Events** | Events |
| **WebInterface** | Customizations, Custom JavaScript, Custom CSS, Buttons, Forms, the domains and the switches of that tab |
| **Tunnels** | Tunnel |
| **Misc** | everything of the Misc tab |

A limited administrator who shall only reset passwords and lock accounts gets **Password** and **Enable/disable account** and nothing else.

Leave **SITE** and **Administer group** out, unless the limited administrator shall be able to make other administrators.

## On a server with roles

A server that uses [Access Roles](Prefs-Access.md) reads these flags as roles: each flag stands for a set of permissions, and **Effective access** on the same tab shows the result. **Convert legacy admins** there rewrites the accounts once and for all.
