Find the answer to your Linux question:
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 ...
  1. #1
    Just 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??

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...