accessing fdisk -l as user

Patrick Drechsler patrick at pdrechsler.de
Thu Aug 14 13:39:48 UTC 2008


Patrick Drechsler <patrick at pdrechsler.de> writes:

> can I access the output of 
>
> fdisk -l
>
> as user on Ubuntu 8.04.1 LTS?
[...]

Leonard, Owen and Smoot: Thank you very much for your help!

To summarize:

* /proc/partitions is not empty (my mistake for not looking into the
file but just looking at the output of 'ls -l').

* A sudo user can have

sudo /sbin/fdisk -l 

in a script without having to enter a password when the script is
executed by the user. Editing /etc/sudoers with visudo was not necessary
(although I am thankful for the pointer from Smoot--I will certainly
keep this in mind).

Thanks again,

Patrick





More information about the ubuntu-users mailing list