# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
# su fdiskuser
$ echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
$ fdisk -l /dev/sda
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 268 2048287+ 83 Linux
/dev/sda3 269 523 2048287+ 83 Linux
/dev/sda4 524 1044 4184932+ 5 Extended
/dev/sda5 524 587 514048+ 83 Linux
/dev/sda6 588 815 1831378+ 83 Linux
/dev/sda7 816 1044 1839411 83 Linux
$ exit
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
# su - fdiskuser
$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home1/fdiskuser/bin
$ fdisk -l /dev/sda
-bash: fdisk: command not found
'OS > [Linux] CentOS' 카테고리의 다른 글
[CentOS] 10-2. suidtest (0) | 2016.07.10 |
---|---|
[CentOS] 10-1. suidtest (0) | 2016.07.10 |
[CentOS] 8. 권한연습 (0) | 2016.07.10 |
[CentOS] 7-2. 리눅스 퍼미션 (0) | 2016.07.10 |
[CentOS] 중간 정리 (0) | 2016.07.06 |