Bug#442093: closed by Kartik Mistry [EMAIL PROTECTED] (Bug#442093: fixed in linhdd 0.4-2)

2007-09-20 Thread A. Costa
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]



Bug#442093: closed by Kartik Mistry [EMAIL PROTECTED] (Bug#442093: fixed in linhdd 0.4-2)

2007-09-19 Thread A. Costa
Just tested the new version, (from debian incoming), it works as 'root' but not 
as an ordinary user:

% who am i | grep root || echo not root; dlocate -s linhdd | grep Vers 
; linHDD ; echo $?
not root
Version: 0.4-2
Traceback (most recent call last):
  File /usr/bin/linHDD, line 559, in ?
main()
  File /usr/bin/linHDD, line 554, in main
DriveWin()
  File /usr/bin/linHDD, line 411, in __init__
self.frac = float(self.perc.rstrip(%)) / 100
AttributeError: 'NoneType' object has no attribute 'rstrip'
1

HTH...



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



Bug#442093: closed by Kartik Mistry [EMAIL PROTECTED] (Bug#442093: fixed in linhdd 0.4-2)

2007-09-19 Thread Kartik Mistry
On 9/20/07, A. Costa [EMAIL PROTECTED] wrote:
 Just tested the new version, (from debian incoming), it works as 'root' but 
 not as an ordinary user:

Hi,

It only works for 'root' :)

-- 
 Cheers,
 ---
 Kartik Mistry  || GPG: 0xD1028C8D || IRC: kart_
 kartikmistry.org/blog || kartikm.wordpress.com
 --



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