Debian – Super User Binary Source for Debian Distro

binary filesdebianrootsource codesu

I'm trying to craft a new root handle in a Debian distro and need to know where the source code for the su binary is located in order to move forward. Can anyone point me in the right direction?

Best Answer

You can get any sources with two commands :

$ dpkg -S /bin/su
util-linux: /bin/su
$ apt source util-linux

The first commands indicates which package su belongs to, the second get the sources and extract its tar file. (I have know a util-linux-2.33.1 directory).

Related Question