It is possible to delete users outside of Piserver but requires some effort:
- Can simply delete the home directories manually in /home to free up space. Either using command-line or try launching the file manager as root to delete the folders from there (recall "sudo pcmanfm", but haven't tried recently). Being careful to only delete former students and not to delete /home/pi
- Can remove username/password administration using standard scripts and programs that can talk to a LDAP server (Apache directory server, phpldapadmin, etc.)
The LDAP server that piserver runs on localhost has an admin username of "cn=admin,dc=raspberrypi,dc=local" and the password can be found with "sudo cat /var/lib/piserver/settings.json"
Note:
- Deleting users from LDAP will not delete the home directory automatically.
- And if you do delete the home directories, but not the administration, an (empty) home directory will be created again if one of the previous users logs in again.
- Can simply delete the home directories manually in /home to free up space. Either using command-line or try launching the file manager as root to delete the folders from there (recall "sudo pcmanfm", but haven't tried recently). Being careful to only delete former students and not to delete /home/pi
- Can remove username/password administration using standard scripts and programs that can talk to a LDAP server (Apache directory server, phpldapadmin, etc.)
The LDAP server that piserver runs on localhost has an admin username of "cn=admin,dc=raspberrypi,dc=local" and the password can be found with "sudo cat /var/lib/piserver/settings.json"
Note:
- Deleting users from LDAP will not delete the home directory automatically.
- And if you do delete the home directories, but not the administration, an (empty) home directory will be created again if one of the previous users logs in again.
Statistics: Posted by incognitum — Tue Jan 07, 2025 8:43 pm