darkk thinkpad sh sh effective 1000 real 1000 darkk thinkpad ls -l sh

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
darkk@thinkpad ~ $ ./sh.sh
effective
1000
real
1000
darkk@thinkpad ~ $ ls -l sh.sh
-rwsr-xr-x 1 root root 164 Фев 2 20:44 sh.sh
darkk@thinkpad ~ $ cat sh.sh
#!/bin/bash
echo effective
id -u
echo real
id --real -u