isPrivilegedUser property
bool
get
isPrivilegedUser
True if the processes effictive uid is root.
Implementation
bool get isPrivilegedUser {
final euid = geteuid();
verbose(() => 'isPrivilegedUser: euid=$euid');
return euid == 0;
// final user = _whoami();
// final privileged = user == 'root';
// verbose(() => 'isPrivilegedUser: $privileged');
// return privileged;
}