Results 1 to 2 of 2
Hi
I m using Scientific Linux SL Release 4.0 (Beryllium)
I want to execute the fdisk -l command as non-root user
While running it as root user I m getting ...
- 03-24-2009 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 1
How to run fdisk -l command as non root user
Hi
I m using Scientific Linux SL Release 4.0 (Beryllium)
I want to execute the fdisk -l command as non-root user
While running it as root user I m getting the output as
[root@carecluster ~]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 51 409626 83 Linux
/dev/sda2 52 5108 40620352+ 8e Linux LVM
/dev/sda3 5109 5369 2096482+ 82 Linux swap
/dev/sda4 5370 9729 35021700 5 Extended
/dev/sda5 5370 9729 35021668+ 83 Linux
While i tried it as non-root user (rajiv)
I don't get any output
[rajiv@carecluster ~]$ fdisk -l
Is it possible with any sudo permissions ?? .. Can any body help me??
- 03-24-2009 #2
Hi and Welcome !
Its not possible to run fdisk command as Regular User. You can gain root privileges easily using sudo or su.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote