Discussion:
SU and Login source code for FC2
(too old to reply)
Roberto Gallo
2004-11-05 13:57:48 UTC
Permalink
Hello there,

I am developing a new PAM module in order to include physical
authentication on my system.

However I would like to make as little mess as possible regarding
configuration files on /etc/pam.d...

This way I really need Login and SU pam aware source codes to recompile
them with different application identifications. These new binaries will
provide me a way to isolate my development from Linux (Fedora Core 2)
healthy authentication system.

Since I am new to Linux I don't know how to get these source
codes... I would really appreciate a simple link to these files... (or
maybe a good explanation on how to get them).

Thank you in advance,

Roberto Gallo.
Steffen Kluge
2004-11-05 15:04:14 UTC
Permalink
Post by Roberto Gallo
This way I really need Login and SU pam aware source codes to recompile
them with different application identifications. These new binaries will
provide me a way to isolate my development from Linux (Fedora Core 2)
healthy authentication system.
Since I am new to Linux I don't know how to get these source
codes... I would really appreciate a simple link to these files... (or
maybe a good explanation on how to get them).
Here's how to get the source of anything installed on your FC2
system:

1) Find the packages the files you're after belong to:

$ rpm -qf `which su`
coreutils-5.2.1-7

$ rpm -qf `which login`
util-linux-2.12-18

2) Get the source RPM's of those packages:

$ wget \
http://download.fedora.redhat.com/pub/fedora/linux/core/2/SRPMS/coreutils-5.2.1-7.src.rpm
$ wget \
http://download.fedora.redhat.com/pub/fedora/linux/core/2/SRPMS/util-linux-2.12-18.src.rpm

3) Install the source RPM's:

$ rpm -i coreutils-5.2.1-7.src.rpm util-linux-2.12-18.src.rpm

4) Peruse the source:

$ cd /usr/src/redhat/SOURCES
$ ls

Cheers
Steffen.
Steffen Kluge
2004-11-05 15:08:12 UTC
Permalink
In article <ODMid.16101$***@news-server.bigpond.net.au>,
Steffen Kluge <***@dotnet.org> wrote:

D'oh!
$ su
Post by Steffen Kluge
$ rpm -i coreutils-5.2.1-7.src.rpm util-linux-2.12-18.src.rpm
s/$/#/

Cheers
Steffen.
Alexander Skwar
2004-11-05 16:39:17 UTC
Permalink
Post by Steffen Kluge
D'oh!
$ su
Post by Steffen Kluge
$ rpm -i coreutils-5.2.1-7.src.rpm util-linux-2.12-18.src.rpm
s/$/#/
And since that's kinda very silly, it's useful to have a $HOME/.rpmmacros:

[17:34:26 ***@server:~/NESI] $ cat /home/alexander/.rpmmacros
%_topdir /home/alexander/RPM
%_tmppath /home/alexander/RPM/tmp

Afterwards, it's possible to "install" source rpms as a normal
user.

Alexander Skwar
--
<wwoods> Folder: INBOX 12,362 Messages
<wwoods> augh! something is wrong here
<wwoods> augh! I got 500 new emails while typing that
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Loading...