How to install Linux capabilities like setcap and getcap?

16,263

You need libcap-progs

sudo zypper install libcap-progs
Share:
16,263

Related videos on Youtube

3bdalla
Author by

3bdalla

Updated on September 18, 2022

Comments

  • 3bdalla
    3bdalla almost 2 years

    In my openSUSE 13.2 machine I can apply commands like setcap and getcap on some application. I moved that application to an openSUSE 12 machine that does not have capabilities installed. In the 13.2 machine I have packages libcap-ng0, libcap1, libcap1-32bit, libcap2 and libcap2-32bit installed, I installed the same packages on the openSUSE 12 machine and I still get this message:

    If 'setcap' is not a typo you can use command-not-found to lookup the package that contains it
    

    Even on root. I just don't remember how I got capabilities to work on my machine. How to install these commands so I can set file capabilities ?

    • taliezin
      taliezin over 9 years
      You need libcap-progs
    • 3bdalla
      3bdalla over 9 years
      Thanks for the help, it worked. Mind to post it as an answer ?
    • taliezin
      taliezin over 9 years
      It is ok, I am glad it worked. :)
    • 3bdalla
      3bdalla over 9 years
      I mean you post not me :D
  • Sandburg
    Sandburg over 5 years
    Is this answer only for Suse? Because I'm not able to find libcap-progs on .deb systems. Where it is more likely the package libcap2-bin
  • Daf
    Daf over 3 years
    @Sandburg you'll want to use the Debian tool to search for a likely equivalent, but also good idea to the google that likely suspect to make sure it's correct/authentic. dpkg -l '''libcap''' wiki.debian.org/PackageManagement/Searching man7.org/linux/man-pages/man1/dpkg.1.html