Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322901 - net-misc/scponly: Remove default chdir
Summary: net-misc/scponly: Remove default chdir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 2 votes (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-05 19:30 UTC by unlord
Modified: 2013-10-13 16:47 UTC (History)
4 users (show)

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


Attachments
scponly-4.8-r4_chdir_fix.patch (scponly-4.8-r4_chdir_fix.patch,744 bytes, patch)
2010-06-05 19:31 UTC, unlord
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description unlord 2010-06-05 19:30:28 UTC
A convenient feature of scponly is the ability to specify the initial directory of a chroot'd user by setting their home directory to:

/home/scponly//pub

Here /home/scponly is the chroot directory and /pub is the initial directory in the chroot.

However, the scponly-4.8-r4 ebuild includes the following hard coded compile option:

 --with-default-chdir="/"

This effectively removes this feature because it forces the chdir to always be "/".  This compiler option should be removed (simply removing this line works fine) and the scponly home directory updated.  I have created a patch for the ebuild that does these two things.

Reproducible: Always

Steps to Reproduce:
Comment 1 unlord 2010-06-05 19:31:29 UTC
Created attachment 234223 [details, diff]
scponly-4.8-r4_chdir_fix.patch
Comment 2 Petr Lanc 2011-03-08 15:21:25 UTC
I don't like this default chdir too. Why is it enable by default? Users really don't like it.
Comment 3 Greg Poucher 2011-05-08 22:18:21 UTC
Another vote in favor of applying Nathan's patch. This isn't hard to fix with an overlay ebuild, but it shouldn't be necessary at all - why is this useful feature being disabled? And it's not just affecting the scponlyc chroot jail version, either - the regular scponly version is also forcing all users to start out in / when they connect via scponly, ignoring their defined home directory.
Comment 4 Darren 2012-05-09 15:13:01 UTC
Just ran into this myself over the past couple of days and eventually tracked it down to this.  Get rid of it or make it a USE flag.
Comment 5 Mike Gilbert gentoo-dev 2012-05-09 16:58:57 UTC
sbriesen introduced this change, so I am adding him to the CC list. Is there any downside to doing this?
Comment 6 Pacho Ramos gentoo-dev 2013-10-13 16:47:38 UTC
+*scponly-4.8-r5 (13 Oct 2013)
+
+  13 Oct 2013; Pacho Ramos <pacho@gentoo.org> +scponly-4.8-r5.ebuild:
+  Replace pkg_setup hacks (#371667), drop default chdir (#322901)
+