Giter VIP home page Giter VIP logo

Comments (9)

xtaran avatar xtaran commented on June 14, 2024

Sounds like a bug in Fedora to me. lsof is not a sysadmin-only program and hence should not reside in sbin IMHO. (And sbin is usually not in a normal user's path.)

I'll think how I can solve that issue in unburden-home-dir.

from unburden-home-dir.

xtaran avatar xtaran commented on June 14, 2024

Can you test if that commit fixes it for you?

from unburden-home-dir.

jeka avatar jeka commented on June 14, 2024

I wholeheartedly agree that lsof should not be in sbin and I intend to file a bug on redhat's bugzila.
But even if they make the change, I doubt that it will be backported. So fix will land in Fedora 23 eventually, most probably in 24 :(
And I guess your fix is OK as I did the same locally, just in more crude way (I just set $which_lsof=/usr/sbin/lsof without any checks)

from unburden-home-dir.

xtaran avatar xtaran commented on June 14, 2024

Actually I pushed a second patch which makes sure that the path in $which_lsof is used instead of just calling lsof.

from unburden-home-dir.

xtaran avatar xtaran commented on June 14, 2024

And yes, I know that such changes won't be backported. That's why I implemented a workaround.

from unburden-home-dir.

jeka avatar jeka commented on June 14, 2024

so that means I just "fixed" the warning locally, not the issue ... very smart move on my side :/

from unburden-home-dir.

xtaran avatar xtaran commented on June 14, 2024

Well, I did the same in my first commit. Which is why there had to be a follow-up commit. :-)

from unburden-home-dir.

csmart avatar csmart commented on June 14, 2024

Menawhile on #fedora-devel..

[08:39:39] anyone know why lsof is installed to /usr/sbin by default and not /usr/bin?
[08:41:05] csmart: because lsof is marked as one of the "system manager binaries", which all (should) go into sbin
[08:41:57] puiterwijk: ok, but it's also useful for regular users, it's not a priviledged program
[08:42:06] just put sbin in your path
[08:42:27] but I don't think that's the right thing to do for a non-priv user
[08:42:41] that's why it's not in the path by default
[08:42:44] it could be moved, but each time this kind of stuff get discussed, it get bikeshed quite fast
[08:43:01] misc: ahh right, I wondered if there was something historic
[08:43:06] to me lsof is a useful non-admin tool
[08:43:12] just like "less"
[08:43:18] :-)
[08:43:23] (and it seems I do have sbin in my path, not sure if that was me who changed that, or the os)
[08:44:18] sbin is in the default path anymore I thought...
[08:44:38] misc: yeah maybe it is there by default now for users, but not for xinit
[08:44:40] sbin is i nthe default path
[08:45:07] anyway, I just wondered why lsof was in sbin, thanks

from unburden-home-dir.

jeka avatar jeka commented on June 14, 2024

Well I filled a bug in redhat's bugzilla. Not that I have any hopes ...

from unburden-home-dir.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.