On Thu, 20 Sep 2007 10:09:15 +0530
"Kartik Mistry" <[EMAIL PROTECTED]> wrote:

> It only works for 'root' :)

But the man page says:

        % man linhdd | grep -n -A 1 -B 3 user
        32-       formatting on a mounted partition. And lastly, ANY 
partitioning or for-
        33-       matting must be done as root.
        34-
        35:       The program allows any user to view drive space and detailed 
HDD infor-
        36-       mation, as well as run a read-speed test on any drive.

Line #35 is therefore vague, "any user" at first glance suggests "any
user account", but if you're right then it means "any root user who
isn't an expert at hdparm".

Yet lines #32-33 clearly imply that 'linhdd' can be run as by regular
users, with the exception that it won't partition or format for anyone
but 'root'.  Otherwise that "And lastly,..." sentence is needless.

If the program is 'root' only, having it output a cryptic internal
error when run by regular users is less useful than something like:

        linHDD: Error, only root can run linHDD.

Maybe it doesn't belong in the user directory '/usr/bin'; it might
belong in '/sbin' or some place appropriate to root.

Compare it to 'hdparm' which if run as a non-root user gives:

        # path free command.
        % hdparm -i /dev/hda
        bash: hdparm: command not found

        # with path
        % /sbin/hdparm -i /dev/hda
        /dev/hda: Permission denied

Summing up: if the program is 'root' only, then the man page has a
two vague and misleading passages that should be corrected, and the non-root
error message needs improvement, and maybe the binary itself should be
moved to an appropriate 'sbin' directory.

HTH...




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to