jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] Jailkit error: install: no input file specified


From: Richard Scott
Subject: Re: [Jailkit-users] Jailkit error: install: no input file specified
Date: Mon, 21 Sep 2015 19:59:04 +0100

Hi,

I have a small update for users of distributions based on RHEL 7... I'm using Scientific Linux 7.1 as I was unable to get Jailkit RPM to work correctly until I rebuilt the RPM as root. This is normally a very bad idea, unless you totally trust the source you are building.

Anyway, the problem is that when Jailkit installes its binary files, it requires the SUID bit to be set on this: /usr/sbin/jk_chrootsh and if you build the RPM under the "makerpm" user as I previously suggested this attribute is not able to be set by the normal user and doesn't make it into the RPM. I don't yet know why, but for some reaosn Scientific Linux 6.x didn't object.

So, the only way I have been able to get the rpm build to wokr is to skip the parts that involve a dedicated user for building rpm's. I guess I could fix the jailkit.spec file to set this attribute on installation, but this was easier ;-)

So this is the new routine for creating this RPM:

# yum install @"development tools" rpmdevtools
# rpmdev-setuptree
# cd rpmbuild/SOURCES
# wget http://olivier.sessink.nl/jailkit/jailkit-2.17.tar.bz2
# tar xjvpf jailkit-2.17.tar.bz2
# cd ..
# cp SOURCES/jailkit-2.17/extra/jailkit.spec SPECS/jailkit.spec
# sed -i s'/2.15/2.17/' SPECS/jailkit.spec
# sed -i s'/1.n247/1/' SPECS/jailkit.spec
# rpmbuild -ba SPECS/jailkit.spec
# yum install ~makerpm/rpmbuild/RPMS/x86_64/jailkit-2.17-1.x86_64.rpm

Do all the above as the root user and you won't go far wrong.

Thanks,

Rich

On 13/09/2015 08:10, Richard Scott wrote:
Hi,

Have you thought about creating an RPM?

# useradd makerpm
# yum install @"development tools" rpmdevtools
# su - makerpm
$ rpmdev-setuptree
$ cd rpmbuild/SOURCES
$ wget http://olivier.sessink.nl/jailkit/jailkit-2.17.tar.bz2
$ tar xjvpf jailkit-2.17.tar.bz2
$ cd ..
$ cp SOURCES/jailkit-2.17/extra/jailkit.spec SPECS/jailkit.spec
$ sed -i s'/2.15/2.17/' SPECS/jailkit.spec
$ sed -i s'/1.n247/1/' SPECS/jailkit.spec
$ rpmbuild -ba SPECS/jailkit.spec
$ exit
# yum install ~makerpm/rpmbuild/RPMS/x86_64/jailkit-2.17-1.x86_64.rpm


That should install it from RPM which makes it much easier to upgrade.

Thanks,

Rich

On 13/09/2015 02:40, Ken wrote:
Hello,
         I am installing Jailkit on Virtualmin 4.18.gpl and received
an error.

address@hidden jailkit-2.17]# ./install-sh
Install: no input file specified.

Not sure if I need to install php, as I saw a file

address@hidden jailkit-2.17]# ls
configure  configure.ac [1]  COPYRIGHT  debian  extra  ini  install-sh
 INSTALL.txt  Makefile.in  man  py  README.txt  src

Cheers,
Ken.

Links:
------
[1] http://configure.ac

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


_______________________________________________
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]