Struct uu_chown::Passwd[][src]

pub struct Passwd { /* fields omitted */ }

Implementations

AKA passwd.pw_name

AKA passwd.pw_uid

AKA passwd.pw_gid

AKA passwd.pw_gecos

AKA passwd.pw_shell

AKA passwd.pw_dir

AKA passwd.pw_passwd

AKA passwd.pw_class

AKA passwd.pw_change

AKA passwd.pw_expire

This is a wrapper function for libc::getgrouplist.

From: https://man7.org/linux/man-pages/man3/getgrouplist.3.html

If the number of groups of which user is a member is less than or equal to *ngroups, then the value *ngroups is returned. If the user is a member of more than *ngroups groups, then getgrouplist() returns -1. In this case, the value returned in *ngroups can be used to resize the buffer passed to a further call getgrouplist().

However, on macOS/darwin (and maybe others?) getgrouplist does not update ngroups if ngroups is too small. Therefore, if not updated by getgrouplist, ngroups needs to be increased in a loop until getgrouplist stops returning -1.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.