LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   where can I download the source code for binaries like "/usr/bin/login" (https://www.linuxquestions.org/questions/linux-kernel-70/where-can-i-download-the-source-code-for-binaries-like-usr-bin-login-657980/)

Kesavaraj 07-24-2008 10:23 AM

where can I download the source code for binaries like "/usr/bin/login"
 
Hi,

I am so curious to know how the binaries (like "/usr/bin/login,etc,..") are compiled in the linux code.. I unable to get the source code of these binaries.. How it will compiled with kernel codes.. Whether the source codes for binaries are compiled separately and the libraries are linked with the kernel.. I am really confused.. If its compiled separately then can anyone provide me the source of this binary source code..

Thanks,
Kesavaraj.

colucix 07-24-2008 10:31 AM

The code of the login command is part of util-linux-ng. You can find source code and information on the ftp server of kernel.org (ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/).

Mr.J 07-29-2008 01:14 AM

you can use yum command as well

$ yum source util-linux-ng

jayjwa 07-29-2008 04:04 PM

Quote:

Originally Posted by colucix (Post 3225052)
The code of the login command is part of util-linux-ng.

Note there are several, one is the util-linux login, the other is from Shadow-utils. Be careful which version you have, and which you install - there are some major differences - you might be logging in the next time from a rescue disk.


All times are GMT -5. The time now is 07:09 AM.