On 01/13/2014 06:39 PM, Bruce Dubbs wrote:
> Ken Moffat wrote:
>> On Sun, Jan 12, 2014 at 09:02:47PM -0600, Bruce Dubbs wrote:
>>> akhiezer wrote:
>>>>> Date: Sun, 12 Jan 2014 17:05:27 -0600
>>>>> From: Bruce Dubbs <bruce.du...@gmail.com>
>>>>> To: BLFS Development List <blfs-dev@linuxfromscratch.org>
>>>>> Subject: Re: [blfs-dev] [blfs-book] [BLFS Trac] #4556: Add package: 
>>>>> lsof_4.87
>>>>>
>>
>>>>> Some of the things it does requires root, even when run as a
>>>>> non-privileged user.
>>>>>
>>>>
>>>>
>>>> Eeek. I'll keep it non-setuid, tyvm.
>>>
>>> LOL.  Your distro...
>>>
>>>     -- Bruce
>>
>>   Does it work when installed suid (on x86_64) ?  I used to build it,
>> but stopped doing that several years ago.  Partly, the weird
>> packaging, and test failures, if I recall correctly, caused me to
>> discount it.  But I also think that on the rare occasions I tried to
>> use it (mostly development-kernel problems, probably also when I've
>> had problems in the nfs area) it was less than useful.  That was
>> with it installed non-suid.
> 
> lsof needs to read:
> 
> crw-r----- 1 root kmem 1,  2 Jul 26 19:14 /dev/kmem
> 
> That's at least one reason for the suid bit.
> 
>    -- Bruce
> 
> 
> 

Since you decided to put it in /sbin which isn't and shouldn't be in
normal user path, it should be only run as root because of that.

On the other hand, I can perfectly run it as normal user. It might just
print a warning though, it isn't anything critical if it can't open
/dev/kmem. That shouldn't be something user should be able to read anyways.

-- 
Note: My last name is not Krejzi.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to