mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:07:35 +00:00
LibCore: Add setters for all user account properties
This commit is contained in:
parent
1420549abf
commit
6ef6bd1ccb
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue