- 论坛徽章:
- 0
|
这样处理安全吗?我不希望普通用户进行分区的修改,只希望他能查看
[root@localhost ~]# chmod u+s /sbin/sfdisk
[root@localhost ~]# ls -ld /sbin/sfdisk
-rwsr-xr-x 1 root root 57624 2007-01-12 /sbin/sfdisk
[root@localhost ~]# exit
logout
[jeff@localhost test]$
[jeff@localhost test]$
[jeff@localhost test]$
[jeff@localhost test]$ /sbin/sfdisk -l
Disk /dev/hda: 9729 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 12 13- 104391 83 Linux
/dev/hda2 13 9728 9716 78043770 8e Linux LVM
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty |
|