puter icon indicating copy to clipboard operation
puter copied to clipboard

Admin account system for selft hosted (and user management in UI)

Open Zac0511 opened this issue 1 year ago • 6 comments

I was thinking of a feature for self hosted that would add an admin account system. The default user created at the install would be admin, and he could have extra menus in settings :

  • Modify config file in Puter, but in an UI way (like, for editing server name, its a text box named "Server name"), and the user would have an option to open the file itself as text if needed, and Puter will ask something like : "Modification of config file requires a server restart. Restart now ?", and if the user clicks yes, the Puter program on the server would restart.
  • Manage users : a new menu in settings could be added to add, config and delete users. The admin(s) will be able to see the storage size of the user (the space they uses on the server storage), manage account types (swith or create an account as admin/normal user), and disable accounts (like if its a kid that is punished from Puter because he hasn't done homework for some reason), wich will block the account to be logged and show "this account is deactivated", and the admin could show a custom message, like "account deactived because : "HOMEWORK NOT DONE""
  • System options : Shutdown and restart the server from the settings

Update 1 : i got another idea :

  • The admins could show a message box (the puter.alert one) to say something to all the logged users on the server, or could choose to show it to specific selected users from a list. It could be based on my error generator app

Update 2 : again, another idea for this :

  • The admins could choose wether or not allow the users to create an account from the login screen ("Create free account" button), or if account creation requires to be made by an admin.

Update 3 : i have too many ideas for this :

  • Admins could see wether an user is online (logged on Puter) or not in the user list.
  • Admins could set a setting that choose if users can stay logged after closing the tab/window with cookies (like by default), or if they are logged off when they closes Puter (more secure if activated).

Update 4 : My brain hurts : Related to #588

  • Server shutdown and restart would need to be the server owner (related to #588)

  • Server sleep mode (owner only) : the owner (#588) would be able to put the server in some sort of sleep mode. Any user trying to open Puter when its in sleep mode will see this (made on MS Paint) :

    puter_sleep

    The owner will need to set when sleep will be deactivated, and can also set plannings (example : sleep from 8 PM to 10 AM every day except week-end). Sleep could also be manually deactivated/activated by typing sleep in the Puter terminal console (on the host PC).

Update 5 :

  • The owner could set a custom message on the sleep mode screen, like "sleeping cause you didn't do homework"

Zac0511 avatar Jul 11 '24 07:07 Zac0511

Admin panel will definitely be released. Last year we wanted to add the ability for admins to be able to send notifs to users, that went on hold. But I always liked this idea

jelveh avatar Jul 11 '24 18:07 jelveh

I updated the idea again

Zac0511 avatar Jul 12 '24 09:07 Zac0511

I updated it... AGAIN

Zac0511 avatar Jul 12 '24 09:07 Zac0511

I've done another update

Zac0511 avatar Jul 12 '24 14:07 Zac0511

These are really awesome, thanks @Zac0511 ! Eric and I discussed this and we're definitely going to make a fully-featured admin app. I like sleep mode in general, but I wonder if it could cause confusion for users.

jelveh avatar Jul 12 '24 22:07 jelveh

Related: https://github.com/HeyPuter/puter/issues/368

secondtruth avatar Jul 13 '24 11:07 secondtruth

Wondering if this UI has been release? Was playing with self-hosted (docker) and couldnt find how to manage the user, user storage

JFOC avatar May 31 '25 15:05 JFOC