How to install Linux capabilities like setcap and getcap?
16,263
You need libcap-progs
sudo zypper install libcap-progs
Related videos on Youtube
Author by
3bdalla
Updated on September 18, 2022Comments
-
3bdalla almost 2 years
In my openSUSE 13.2 machine I can apply commands like
setcap
andgetcap
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 packageslibcap-ng0
,libcap1
,libcap1-32bit
,libcap2
andlibcap2-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 over 9 yearsYou need libcap-progs
-
3bdalla over 9 yearsThanks for the help, it worked. Mind to post it as an answer ?
-
taliezin over 9 yearsIt is ok, I am glad it worked. :)
-
3bdalla over 9 yearsI mean you post not me :D
-
-
Sandburg over 5 yearsIs this answer only for Suse? Because I'm not able to find
libcap-progs
on.deb
systems. Where it is more likely the packagelibcap2-bin
-
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