2

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 ?

4
  • 1
    You need libcap-progs Commented Mar 10, 2015 at 10:56
  • Thanks for the help, it worked. Mind to post it as an answer ? Commented Mar 10, 2015 at 11:54
  • 1
    It is ok, I am glad it worked. :) Commented Mar 10, 2015 at 12:00
  • I mean you post not me :D Commented Mar 10, 2015 at 12:34

1 Answer 1

5

You need libcap-progs

sudo zypper install libcap-progs 
2
  • 3
    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 Commented Feb 12, 2019 at 15:19
  • @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 Commented Mar 12, 2021 at 16:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.