jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] jk_cp problem?


From: Richard Scott
Subject: Re: [Jailkit-users] jk_cp problem?
Date: Tue, 25 Jun 2013 09:44:29 +0100
User-agent: Roundcube Webmail/0.9.2

Hi,

It's a feature of this release and should be resolved in a future release. I believe the fix is in CVS if you have access to that?

Try it without the "-j part" i.e.

% jk_cp -v -k -f /export/nz /usr/bin/ssh-keygen


Rich

 

On 25/06/2013 09:26, Marcin Krol wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,


- -j argument seems to malfunction for me:


% jk_cp -v -k -f -j /export/nz /usr/bin/ssh-keygen
ERROR:  is not a directory

Usage: /usr/sbin/jk_cp -j <jail> [OPTIONS] <files and directories>

- -h --help          : this help screen
- -j, --jail         : the jail to copy to
- -v, --verbose      : show what is being copied
- -f, --force        : overwrite existing files
- -k, --hardlink     : use hardlinks if possible
- -o, --owner        : retain file ownership and group
- -s, --setuid       : retain file setuid/setgid bits

Note: if no jail is specified, the first argument is
considered to be the jail







However, specifying jail as first argument seems to work (successfully
copied the binary):




% jk_cp -v -k -f  /export/nz/ /usr/bin/ssh-keygen
Trying to link /usr/bin/ssh-keygen to /export/nz/usr/bin/ssh-keygen
Linking /usr/bin/ssh-keygen to /export/nz/usr/bin/ssh-keygen failed,
will revert to copying
Creating symlink /export/nz/lib/i686/cmov/libresolv.so.2 to
libresolv-2.7.so
Destination file /export/nz/lib/i686/cmov/libresolv-2.7.so exists,
will delete to force update
Trying to link /lib/i686/cmov/libresolv-2.7.so to
/export/nz/lib/i686/cmov/libresolv-2.7.so
Linking /lib/i686/cmov/libresolv-2.7.so to
/export/nz/lib/i686/cmov/libresolv-2.7.so failed, will revert to copying
Destination file /export/nz/u

...



jailkit used: http://olivier.sessink.nl/jailkit/jailkit-2.16.tar.bz2


system:

% uname -a
Linux krokus 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686
GNU/Linux


 % cat /etc/debian_version
5.0.6





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRyVQ/AAoJEFMgHzhQQ7hOY8gH/R6GqlPnRelpU9hkcdYZhdC7
c0jNK6oY2h2139zaYzPqA0Z2/8iGj5pw/v91DPKj+BGie2Oun3I+4hhHusSPgDF6
/GGhu0zyTHwUSEZ2eEhzKI+AYvJNZIwUXGGrbMOAjXum2p0/jeOTGY02cGbPKqaD
7gfdRqNr24C9C8G+NCy7G4xOIz6vLGQTnZNTtmcZlhUWetKwzVpEMTAXDv8ylPI2
bIumZTvTWjILlMOssj5n6GD5ozgXK7H6KROlg80xYGYJnLBueLQU01celd9L5LrU
UAXDb6WuA7WCuIK7reb0h0h3X+h06O8pMnAG1OqACwyAosylY96EzbIvm5bnXd8=
=MPxl
-----END PGP SIGNATURE-----

_______________________________________________
Jailkit-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/jailkit-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]