summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/Account.h
diff options
context:
space:
mode:
authorbrapru <brapru@pm.me>2021-06-13 07:17:57 -0400
committerGunnar Beutner <gunnar@beutner.name>2021-07-14 08:06:30 +0200
commit6ef6bd1ccb7a675a5529ae7d5d9ebe833dc93f93 (patch)
tree54709d3317285d606966a3fbb66e86ae74de3396 /Userland/Libraries/LibCore/Account.h
parent1420549abf3168534078ab265455bd3b48ff3356 (diff)
downloadserenity-6ef6bd1ccb7a675a5529ae7d5d9ebe833dc93f93.zip
LibCore: Add setters for all user account properties
Diffstat (limited to 'Userland/Libraries/LibCore/Account.h')
-rw-r--r--Userland/Libraries/LibCore/Account.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/Account.h b/Userland/Libraries/LibCore/Account.h
index c103468dbc..8b8cce2de9 100644
--- a/Userland/Libraries/LibCore/Account.h
+++ b/Userland/Libraries/LibCore/Account.h
@@ -46,6 +46,11 @@ public:
// You must call sync to apply changes.
void set_password(const char* password);
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();
// A null password means that this account was missing from /etc/shadow.