Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125518 - Incorrect sftp-server location in rssh-2.3.2.ebuild econf
Summary: Incorrect sftp-server location in rssh-2.3.2.ebuild econf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-08 12:47 UTC by Ed Cates
Modified: 2006-03-08 19:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to get rssh-2.3.2 ebuild working on amd64 (rssh.diff,512 bytes, patch)
2006-03-08 12:50 UTC, Ed Cates
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Cates 2006-03-08 12:47:23 UTC
The rssh-2.3.2 ebuild has "--with-sftp-server=/usr/lib/misc/sftp-server" hard-coded.  On my Gentoo 2005.1 system, openssh-4.2_p1-r1 installs sftp-server in /usr/lib64/misc/.  As a result, attempts at using rssh causes the following log messages to appear:
Mar  8 15:14:41 img rssh[4742]: user Oedipus attempted to execute forbidden commands
Mar  8 15:14:41 img rssh[4742]: command: /usr/lib64/misc/sftp-server

I've modified the ebuild to account for amd64 systems, but there's probably a better way to do it.
Comment 1 Ed Cates 2006-03-08 12:50:16 UTC
Created attachment 81718 [details, diff]
Patch to get rssh-2.3.2 ebuild working on amd64

Here's my modification to the rssh-2.3.2 ebuild to get it working on amd64.  Like I said, there's probably a better way to do this officially, but at least you get the idea of what needs to be done.

I guess the question is whether or not all packages that satisfy "virtual/ssh" put sftp-server in the same place.
Comment 2 SpanKY gentoo-dev 2006-03-08 16:27:22 UTC
your /usr/lib should be a symlink to /usr/lib64
Comment 3 SpanKY gentoo-dev 2006-03-08 16:36:49 UTC
fixed in cvs
Comment 4 Ed Cates 2006-03-08 19:16:07 UTC
(In reply to comment #2)
> your /usr/lib should be a symlink to /usr/lib64
> 

It is, but rssh using the 2.3.2 ebuild still tosses out the "attempted to execute forbidden commands" error in the logs, because sshd is trying to launch "/usr/lib64/misc/sftp-server."