【问题标题】:Find SU binary source查找 SU 二进制源
【发布时间】:2017-01-13 17:45:34
【问题描述】:

在哪里可以找到 linux 中 SU 二进制文件的源代码?整个操作系统都是开源的,为什么我找不到呢?我可以找到 SUDO 源,但这不是我要找的。​​p>

【问题讨论】:

标签: linux ubuntu debian


【解决方案1】:

Debian 稳定版:

$ which su
/bin/su

$ apt-file search /bin/su | grep "/bin/su$"
login: /bin/su

$ apt-cache show login | grep "Homepage"
Homepage: http://pkg-shadow.alioth.debian.org/

<open page, click Download, observe github link>
https://github.com/shadow-maint/shadow

https://github.com/shadow-maint/shadow/blob/master/src/su.c

【讨论】:

  • 非常感谢。我想知道 CentOS 的 su.c 在哪里。我找到了 centos/coreutils here 的来源,但那里没有内容。我还找到了 gnu 的 coreutils here,但那里没有 su.c。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-03-03
  • 2019-12-20
  • 1970-01-01
相关资源
最近更新 更多