We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558ee88 commit ec65d42Copy full SHA for ec65d42
chapter11/src/11_1_5/main.rs
@@ -1,3 +1,8 @@
1
+use nix::unistd::{getegid, geteuid, getgid, getuid};
2
+
3
fn main() {
- println!("11_1_5");
4
+ println!("ユーザー ID: {}", getuid());
5
+ println!("グループID: {}", getgid());
6
+ println!("実効ユーザーID: {}", geteuid());
7
+ println!("実効グループID: {}", getegid());
8
}
0 commit comments