1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

LibCore: Add setters for all user account properties

This commit is contained in:
brapru 2021-06-13 07:17:57 -04:00 committed by Gunnar Beutner
parent 1420549abf
commit 6ef6bd1ccb

View file

@ -46,6 +46,11 @@ public:
// You must call sync to apply changes. // You must call sync to apply changes.
void set_password(const char* password); void set_password(const char* password);
void set_password_enabled(bool enabled); void set_password_enabled(bool enabled);
void set_home_directory(const char* home_directory) { m_home_directory = home_directory; }
void set_uid(uid_t uid) { m_uid = uid; }
void set_gid(gid_t gid) { m_gid = gid; }
void set_shell(const char* shell) { m_shell = shell; }
void set_gecos(const char* gecos) { m_gecos = gecos; }
void delete_password(); void delete_password();
// A null password means that this account was missing from /etc/shadow. // A null password means that this account was missing from /etc/shadow.