Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- IAM=$(whoami)
- ID=$(id -u $IAM)
- echo "${IAM}"
- echo "${ID}"
- Andromeda $ ls -al | grep test.sh
- -rwsrwxrwx 1 pkaramol pkaramol 71 Δεκ 8 07:52 test.sh
- Andromeda $ ./test.sh
- pkaramol
- 1000
- Andromeda $ su testuser
- Password:
- testuser@Andromeda:/home/pkaramol/Desktop$ ./test.sh
- testuser
- 1001
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement