I
I
ipivkin2015-01-19 13:14:51
linux
ipivkin, 2015-01-19 13:14:51

Where can I find the source code for the su command?

Good afternoon, colleagues!
I can't find the source code for the su command . Please advise :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
jcmvbkbc, 2015-01-19
@ipivkin

Until mid 2012 it was part of coreutils, see git.savannah.gnu.org/cgit/coreutils.git/commit/?id...
Now it lives in util-linux: https://git.kernel.org/cgit /utils/util-linux/util-...

Y
yttrium, 2015-01-19
@yttrium

pkg-shadow.alioth.debian.org

G
giner, 2015-01-28
@giner

On Debian-based systems, you can quickly get the source of any binary like this:

$ dpkg -S $(which su)
login: /bin/su
$ apt-get source login
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question