LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-24-2008, 10:23 AM   #1
Kesavaraj
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
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.
 
Old 07-24-2008, 10:31 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,453

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
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/).
 
Old 07-29-2008, 01:14 AM   #3
Mr.J
Member
 
Registered: Jun 2008
Posts: 82

Rep: Reputation: 15
you can use yum command as well

$ yum source util-linux-ng
 
Old 07-29-2008, 04:04 PM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 253

Rep: Reputation: 36
Quote:
Originally Posted by colucix View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 12:22 AM
Where to download precompiled bash binaries, such as "time" and "top"? elinuxqs Linux - Newbie 12 11-14-2005 08:36 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration