1 | Summary: Clients for remote access commands (rsh, rlogin, rcp). |
---|
2 | Summary(ja): リモートアクセスコマンド (rsh, rlogin, rcp) のクライアント |
---|
3 | Name: rsh |
---|
4 | Version: 0.17 |
---|
5 | Release: 35%{?_dist_release} |
---|
6 | License: BSD |
---|
7 | Group: Applications/Internet |
---|
8 | |
---|
9 | Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rsh-%{version}.tar.gz |
---|
10 | Source1: rexec.pam |
---|
11 | Source2: rlogin.pam |
---|
12 | Source3: rsh.pam |
---|
13 | Source4: http://www.tc.cornell.edu/~sadd/rexec-1.5.tar.gz |
---|
14 | Source5: rsh-xinetd |
---|
15 | Source6: rlogin-xinetd |
---|
16 | Source7: rexec-xinetd |
---|
17 | |
---|
18 | Patch1: netkit-rsh-0.17-sectty.patch |
---|
19 | Patch2: netkit-rsh-0.17-rexec.patch |
---|
20 | Patch3: netkit-rsh-0.10-stdarg.patch |
---|
21 | Patch4: netkit-rsh-0.16-jbj.patch |
---|
22 | Patch5: netkit-rsh-0.16-pamfix.patch |
---|
23 | Patch6: netkit-rsh-0.16-jbj2.patch |
---|
24 | Patch7: netkit-rsh-0.16-jbj3.patch |
---|
25 | Patch8: netkit-rsh-0.16-jbj4.patch |
---|
26 | Patch9: netkit-rsh-0.16-prompt.patch |
---|
27 | Patch10: netkit-rsh-0.16-rlogin=rsh.patch |
---|
28 | Patch11: netkit-rsh-0.16-nokrb.patch |
---|
29 | Patch12: netkit-rsh-0.17-pre20000412-jbj5.patch |
---|
30 | Patch13: netkit-rsh-0.17-userandhost.patch |
---|
31 | Patch14: netkit-rsh-0.17-strip.patch |
---|
32 | Patch15: netkit-rsh-0.17-lfs.patch |
---|
33 | Patch16: netkit-rsh-0.17-chdir.patch |
---|
34 | Patch17: netkit-rsh-0.17-pam-nologin.patch |
---|
35 | Patch19: netkit-rsh-0.17-rexec-netrc.patch |
---|
36 | Patch20: netkit-rsh-0.17-pam-sess.patch |
---|
37 | Patch21: netkit-rsh-0.17-errno.patch |
---|
38 | Patch22: netkit-rsh-0.17-rexec-sig.patch |
---|
39 | Patch23: netkit-rsh-0.17-nohost.patch |
---|
40 | Patch24: netkit-rsh-0.17-ignchld.patch |
---|
41 | Patch25: netkit-rsh-0.17-checkdir.patch |
---|
42 | Patch26: netkit-rsh-0.17-pam-conv.patch |
---|
43 | Patch27: netkit-rsh-0.17-rcp-largefile.patch |
---|
44 | Patch28: netkit-rsh-0.17-pam-rhost.patch |
---|
45 | Patch29: netkit-rsh-0.17-rlogin-linefeed.patch |
---|
46 | Patch30: netkit-rsh-0.17-ipv6.patch |
---|
47 | Patch31: netkit-rsh-0.17-pam_env.patch |
---|
48 | Patch33: netkit-rsh-0.17-dns.patch |
---|
49 | Patch34: netkit-rsh-0.17-nohostcheck-compat.patch |
---|
50 | Patch35: netkit-rsh-0.17-audit.patch |
---|
51 | Patch36: netkit-rsh-0.17-longname.patch |
---|
52 | Patch37: netkit-rsh-0.17-arg_max.patch |
---|
53 | |
---|
54 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
55 | BuildPrereq: perl |
---|
56 | BuildPrereq: libtermcap-devel |
---|
57 | |
---|
58 | %description |
---|
59 | The rsh package contains a set of programs which allow users to run |
---|
60 | commmands on remote machines, login to other machines and copy files |
---|
61 | between machines (rsh, rlogin and rcp). All three of these commands |
---|
62 | use rhosts style authentication. This package contains the clients |
---|
63 | needed for all of these services. |
---|
64 | The rsh package should be installed to enable remote access to other |
---|
65 | machines. |
---|
66 | |
---|
67 | %description -l ja |
---|
68 | rsh パッケージにはリモートマシン上でコマンドを実行させたり (rsh), |
---|
69 | 他のマシンにログインしたり (rlogin),マシン間でファイルをコピーしたり |
---|
70 | (rcp) するプログラムが収められています.この3つのコマンドは全て |
---|
71 | rhosts スタイルの認証形式をとります.このパッケージにはこれらの |
---|
72 | サービスに必要なクライアントプログラムが収められています. |
---|
73 | 他のマシンの遠隔操作を可能にする為には rsh パッケージをインストール |
---|
74 | して下さい. |
---|
75 | |
---|
76 | |
---|
77 | %package server |
---|
78 | Summary: Servers for remote access commands (rsh, rlogin, rcp). |
---|
79 | Summary(ja): リモートアクセスコマンド (rsh, rlogin, rcp) のサーバ |
---|
80 | Group: System Environment/Daemons |
---|
81 | #Requires: pam >= 0.59, /etc/pam.d/system-auth |
---|
82 | Requires: pam >= 0.72 |
---|
83 | |
---|
84 | |
---|
85 | %description server |
---|
86 | The rsh-server package contains a set of programs which allow users |
---|
87 | to run commmands on remote machines, login to other machines and copy |
---|
88 | files between machines (rsh, rlogin and rcp). All three of these |
---|
89 | commands use rhosts style authentication. This package contains the |
---|
90 | servers needed for all of these services. It also contains a server |
---|
91 | for rexec, an alternate method of executing remote commands. |
---|
92 | All of these servers are run by inetd and configured using |
---|
93 | /etc/inetd.conf and PAM. The rexecd server is disabled by default, |
---|
94 | but the other servers are enabled. |
---|
95 | |
---|
96 | The rsh-server package should be installed to enable remote access |
---|
97 | from other machines. |
---|
98 | |
---|
99 | %description server -l ja |
---|
100 | rsh-server パッケージにはリモートマシン上でコマンドを実行させたり (rsh), |
---|
101 | 他のマシンにログインしたり (rlogin),マシン間でファイルをコピーしたり |
---|
102 | (rcp) するプログラムが収められています.この3つのコマンドは全て |
---|
103 | rhosts スタイルの認証形式をとります.このパッケージにはこれらの |
---|
104 | サービスに必要なサーバプログラムが収められています.その他 |
---|
105 | rexec という別の種類のリモートコマンド実行の為のサーバも収められています. |
---|
106 | これらサーバは全て inetd から起動し,/etc/inetd.conf や PAM を介して |
---|
107 | 設定を行います.rexecd サーバはデフォルトでは起動しませんが, |
---|
108 | 他のサーバはデフォルトで起動する様になっています. |
---|
109 | |
---|
110 | 他のマシンから遠隔操作を可能にする為には rsh-server パッケージを |
---|
111 | インストールして下さい. |
---|
112 | |
---|
113 | |
---|
114 | %prep |
---|
115 | %setup -q -n netkit-rsh-%{version} -a 4 |
---|
116 | %patch1 -p1 -b .sectty |
---|
117 | %patch2 -p1 -b .rexec |
---|
118 | %patch3 -p1 -b .stdarg |
---|
119 | %patch4 -p1 -b .jbj |
---|
120 | # XXX patches {6,7,8} not applied |
---|
121 | #%patch5 -p1 -b .pamfix |
---|
122 | #%patch6 -p1 -b .jbj2 |
---|
123 | #%patch7 -p1 -b .jbj3 |
---|
124 | %patch8 -p1 -b .jbj4 |
---|
125 | %patch9 -p1 -b .prompt |
---|
126 | %patch10 -p1 -b .rsh |
---|
127 | %patch11 -p1 -b .rsh.nokrb |
---|
128 | %patch12 -p1 -b .jbj5 |
---|
129 | %patch13 -p1 -b .userandhost |
---|
130 | %patch14 -p1 -b .strip |
---|
131 | %patch15 -p1 -b .lfs |
---|
132 | %patch16 -p1 -b .chdir |
---|
133 | %patch17 -p1 -b .pam-nologin |
---|
134 | %patch19 -p1 -b .rexec-netrc |
---|
135 | %patch20 -p1 -b .pam-sess |
---|
136 | %patch21 -p1 -b .errno |
---|
137 | %patch22 -p1 -b .rexec-sig |
---|
138 | %patch23 -p1 -b .nohost |
---|
139 | %patch24 -p1 -b .ignchld |
---|
140 | %patch25 -p1 -b .checkdir |
---|
141 | %patch26 -p1 -b .pam-conv |
---|
142 | %patch27 -p1 -b .largefile |
---|
143 | %patch28 -p1 -b .pam-rhost |
---|
144 | %patch29 -p1 -b .linefeed |
---|
145 | %patch30 -p1 -b .ipv6 |
---|
146 | %patch31 -p1 -b .pam_env |
---|
147 | %patch33 -p1 -b .dns |
---|
148 | %patch34 -p1 -b .compat |
---|
149 | %patch35 -p1 -b .audit |
---|
150 | %patch36 -p1 -b .longname |
---|
151 | %patch37 -p1 -b .arg_max |
---|
152 | |
---|
153 | # No, I don't know what this is doing in the tarball. |
---|
154 | rm -f rexec/rexec |
---|
155 | |
---|
156 | |
---|
157 | %build |
---|
158 | sh configure --with-c-compiler=gcc |
---|
159 | perl -pi -e ' |
---|
160 | s,^CC=.*$,CC=cc,; |
---|
161 | s,-O2,\$(RPM_OPT_FLAGS) -fpic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE,; |
---|
162 | s,^LDFLAGS=,LDFLAGS=-pie,; |
---|
163 | s,^BINDIR=.*$,BINDIR=%{_bindir},; |
---|
164 | s,^MANDIR=.*$,MANDIR=%{_mandir},; |
---|
165 | s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; |
---|
166 | ' MCONFIG |
---|
167 | |
---|
168 | make %{?_smp_mfalgs} |
---|
169 | |
---|
170 | |
---|
171 | %install |
---|
172 | rm -rf ${RPM_BUILD_ROOT} |
---|
173 | mkdir -p ${RPM_BUILD_ROOT}%{_bindir} |
---|
174 | mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} |
---|
175 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,5,8} |
---|
176 | mkdir -p ${RPM_BUILD_ROOT}/etc/pam.d |
---|
177 | |
---|
178 | make INSTALLROOT=${RPM_BUILD_ROOT} BINDIR=%{_bindir} MANDIR=%{_mandir} install |
---|
179 | |
---|
180 | install -m 644 $RPM_SOURCE_DIR/rexec.pam ${RPM_BUILD_ROOT}/etc/pam.d/rexec |
---|
181 | install -m 644 $RPM_SOURCE_DIR/rlogin.pam ${RPM_BUILD_ROOT}/etc/pam.d/rlogin |
---|
182 | install -m 644 $RPM_SOURCE_DIR/rsh.pam ${RPM_BUILD_ROOT}/etc/pam.d/rsh |
---|
183 | |
---|
184 | mkdir -p ${RPM_BUILD_ROOT}/etc/xinetd.d/ |
---|
185 | install -m644 %SOURCE5 ${RPM_BUILD_ROOT}/etc/xinetd.d/rsh |
---|
186 | install -m644 %SOURCE6 ${RPM_BUILD_ROOT}/etc/xinetd.d/rlogin |
---|
187 | install -m644 %SOURCE7 ${RPM_BUILD_ROOT}/etc/xinetd.d/rexec |
---|
188 | |
---|
189 | %clean |
---|
190 | rm -rf ${RPM_BUILD_ROOT} |
---|
191 | |
---|
192 | |
---|
193 | %files |
---|
194 | %defattr(-,root,root) |
---|
195 | %attr(4755,root,root) %{_bindir}/rcp |
---|
196 | %{_bindir}/rexec |
---|
197 | %attr(4755,root,root) %{_bindir}/rlogin |
---|
198 | %attr(4755,root,root) %{_bindir}/rsh |
---|
199 | %{_mandir}/man1/*.1* |
---|
200 | |
---|
201 | %files server |
---|
202 | %defattr(-,root,root) |
---|
203 | %config /etc/pam.d/rsh |
---|
204 | %config /etc/pam.d/rlogin |
---|
205 | %config /etc/pam.d/rexec |
---|
206 | %{_sbindir}/in.rexecd |
---|
207 | %{_sbindir}/in.rlogind |
---|
208 | %{_sbindir}/in.rshd |
---|
209 | /etc/xinetd.d/* |
---|
210 | %{_mandir}/man8/*.8* |
---|
211 | |
---|
212 | |
---|
213 | %changelog |
---|
214 | * Sun Sep 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-35 |
---|
215 | - new versioning policy, spec in UTF-8 |
---|
216 | - import Patch3[0-7] from fedora |
---|
217 | |
---|
218 | * Thu Jun 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-34vl1 |
---|
219 | - added Patches from Fedora 0.17-34.1 |
---|
220 | * Thu Feb 9 2006 Karel Zak <kzak@redhat.com> 0.17-34 |
---|
221 | - fix #178916 - Line feeds when password needs changing with rlogin |
---|
222 | * Mon Nov 28 2005 Karel Zak <kzak@redhat.com> 0.17-33 |
---|
223 | - fix #174146 - pam_access.so does not work with rexecd |
---|
224 | * Thu Nov 24 2005 Karel Zak <kzak@redhat.com> 0.17-32 |
---|
225 | - fix #174045 - rcp outputs negative file size when over 2GB |
---|
226 | |
---|
227 | * Sun Feb 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-28vl1 |
---|
228 | - based on Redhat Rawhide 0.17-28 |
---|
229 | * Thu Feb 3 2005 Karel Zak <kzak@redhat.com> 0.17-28 |
---|
230 | - malicious rcp server can cause rcp to write to arbitrary files |
---|
231 | (like scp CAN-2004-0175) (#146464) |
---|
232 | * Mon Dec 6 2004 Karel Zak <kzak@redhat.com> 0.17-27 |
---|
233 | - removed BSD stuff "signal(SIGCHLD, SIG_IGN)". It's unsupported |
---|
234 | by POSIX/linux. (#122315) |
---|
235 | * Wed Nov 17 2004 Karel Zak <kzak@redhat.com> 0.17-25 |
---|
236 | - rexecd uses PAM session now (#68590) |
---|
237 | - fixed errno usage in rcp (#67361) |
---|
238 | - fixed rexec fails with "Invalid Argument" (#118630) |
---|
239 | * Mon Oct 18 2004 Radek Vokal <rvokal@redhat.com> 0.17-24 |
---|
240 | - The username and password for ~/.netrc are used (#135643) |
---|
241 | * Thu Feb 5 2004 Thomas Woerner <twoerner@redhat.com> 0.17-20 |
---|
242 | - in.rexecd, in.rlogind and in.rshd are pie, now |
---|
243 | * Tue Oct 21 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-19 |
---|
244 | - Included updated patch from #105733. |
---|
245 | * Thu Oct 02 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-18 |
---|
246 | - Fixed YAT (#79391). |
---|
247 | - Included feature request #105733 (-D option). |
---|
248 | |
---|
249 | * Mon Jun 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-15vl1 |
---|
250 | - based on Redhat Rawhide 0.17-15 |
---|
251 | - replaced Patch2, Patch3 and Patch14 by newer ones |
---|
252 | - added Patch15, Patch16 |
---|
253 | - rebuild with new toolchains |
---|
254 | - to use License instead of Copyright |
---|
255 | |
---|
256 | * Thu Jan 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
257 | - 0.17-2.4vl2 |
---|
258 | - Requires: /etc/pam.d/system-auth -> pam >= 0.72 for rsh-server |
---|
259 | |
---|
260 | * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
261 | - 0.17-2.4vl1 |
---|
262 | - based on 0.17-2.4 from Rawhide |
---|
263 | - added Japanese summary and description |
---|
264 | |
---|
265 | * Tue Oct 10 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
266 | - fix PAM config files to always honor nologin and securetty, to use rhosts, |
---|
267 | and to fall back to password auth only for rlogin and rexec (#17183) |
---|
268 | - add references to pam_env to the PAM configs as well (#16170) |
---|
269 | - disable rlogin and rsh by default |
---|
270 | |
---|
271 | * Mon Oct 02 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
272 | - fix typo in the rexec xinetd configuration file (#18107) |
---|
273 | |
---|
274 | * Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
275 | - fix typo in the rlogin PAM config file |
---|
276 | - continue the tradition of messed-up release numbers |
---|
277 | |
---|
278 | * Tue Jul 18 2000 Bill Nottingham <notting@redhat.com> |
---|
279 | - add description & default to xinetd file |
---|
280 | |
---|
281 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
282 | - automatic rebuild |
---|
283 | |
---|
284 | * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> |
---|
285 | - FHS packaging. |
---|
286 | - update to 0.17. |
---|
287 | |
---|
288 | * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
289 | - modify PAM setup to use system-auth |
---|
290 | |
---|
291 | * Mon May 29 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
292 | - expunge all mentions of kerberos authentication or DES encryption using |
---|
293 | kerberos from the man pages |
---|
294 | |
---|
295 | * Thu May 25 2000 Trond Eivind Glomsr <teg@redhat.com> |
---|
296 | - switched to xinetd |
---|
297 | |
---|
298 | * Tue Mar 7 2000 Jeff Johnson <jbj@redhat.com> |
---|
299 | - rebuild for sparc baud rates > 38400. |
---|
300 | |
---|
301 | * Fri Mar 04 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
302 | - make rlogin still work correctly when argv[0] = "rsh" |
---|
303 | |
---|
304 | * Mon Feb 28 2000 Jeff Johnson <jbj@redhat.com> |
---|
305 | - workaround (by explicitly prompting for password) #4328 and #9715. |
---|
306 | |
---|
307 | * Wed Feb 9 2000 Jeff Johnson <jbj@redhat.com> |
---|
308 | - mark pam config files as %config. |
---|
309 | |
---|
310 | * Fri Feb 4 2000 Bill Nottingham <notting@redhat.com> |
---|
311 | - handle compressed manpages |
---|
312 | |
---|
313 | * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> |
---|
314 | - fix description |
---|
315 | |
---|
316 | * Sun Jan 30 2000 Bill Nottingham <notting@redhat.com> |
---|
317 | - remove bogus rexec binary when building; it causes weirdness |
---|
318 | |
---|
319 | * Fri Jan 28 2000 Jeff Johnson <jbj@redhat.com> |
---|
320 | - Make sure that rshd is compiled with -DUSE_PAM. |
---|
321 | |
---|
322 | * Mon Jan 10 2000 Jeff Johnson <jbj@redhat.com> |
---|
323 | - Fix bug in rshd (hangs forever with zombie offspring) (#8313). |
---|
324 | |
---|
325 | * Wed Jan 5 2000 Jeff Johnson <jbj@redhat.com> |
---|
326 | - fix the PAM fix yet again (#8133). |
---|
327 | |
---|
328 | * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com> |
---|
329 | - split client and server |
---|
330 | |
---|
331 | * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> |
---|
332 | - update to 0.16. |
---|
333 | - dup setuid bits into files list. |
---|
334 | |
---|
335 | * Fri Jul 30 1999 Jeff Johnson <jbj@redhat.com> |
---|
336 | - update to rexec-1.5 client (#4262) |
---|
337 | |
---|
338 | * Wed May 19 1999 Jeff Johnson <jbj@redhat.com> |
---|
339 | - fix broken rexec protocol in in.rexecd (#2318). |
---|
340 | |
---|
341 | * Tue May 4 1999 Justin Vallon <vallon@mindspring.com> |
---|
342 | - rcp with error was tricked by stdarg side effect (#2300) |
---|
343 | |
---|
344 | * Thu Apr 15 1999 Michael K. Johnson <johnsonm@redhat.com> |
---|
345 | - rlogin pam file was missing comment magic |
---|
346 | |
---|
347 | * Tue Apr 06 1999 Preston Brown <pbrown@redhat.com> |
---|
348 | - strip rexec |
---|
349 | |
---|
350 | * Fri Mar 26 1999 Jeff Johnson <jbj@redhat.com> |
---|
351 | - rexec needs pam_set_item() (#60). |
---|
352 | - clarify protocol in rexecd.8. |
---|
353 | - add rexec client from contrib. |
---|
354 | |
---|
355 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
356 | - auto rebuild in the new build environment (release 22) |
---|
357 | |
---|
358 | * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> |
---|
359 | - compile for 6.0. |
---|
360 | |
---|
361 | * Fri Apr 24 1998 Prospector System <bugs@redhat.com> |
---|
362 | - translations modified for de, fr, tr |
---|
363 | |
---|
364 | * Tue Apr 14 1998 Erik Troan <ewt@redhat.com> |
---|
365 | - built against new ncurses |
---|
366 | |
---|
367 | * Sat Apr 5 1998 Marcelo F. Vianna <m-vianna@usa.net> |
---|
368 | - Packaged for RH5.0 (Hurricane) |
---|
369 | |
---|
370 | * Tue Oct 14 1997 Michael K. Johnson <johnsonm@redhat.com> |
---|
371 | - new pam conventions |
---|
372 | |
---|
373 | * Tue Jul 15 1997 Erik Troan <ewt@redhat.com> |
---|
374 | - initial build |
---|