[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-users] sftp problem
From: |
Stephen Tallowitz |
Subject: |
Re: [Jailkit-users] sftp problem |
Date: |
Sat, 22 Apr 2006 00:57:11 +0200 |
Hello Jared,
The error originates from this here (see jk_chrootsh.c in the sources):
pw = getpwuid(getuid());
DEBUG_MSG("got %s as pw_dir\n",pw->pw_dir);
if (!pw) {
syslog(LOG_ERR, "abort, failed to get user information
in the jail for user ID %d: %s, check
%s/etc/passwd",getuid(),strerror(errno),jaildir);
exit(35);
}
Obviously something wrong with getpwuid or getuid. This might be solved by:
a. using the current version (2.0) of jailkit - which fixes some errors for
Suse which might also affect your version, though I doubt it.
b. running jk_init. You did actually run jk_init and not use the "manual"
copying mechanism known as jk_cp? jk_init copies files and dependencies needed.
c. If those things don't help, it might be a library issue. In that case we
will have to determine which libraries are missing in your jail - or if indeed
32 bit libraries were copied to the jail, while 64 bit libraries were expected.
Let's assume all 64 bit libraries are stored in /usr/lib64, you'd probably also
have libnsl.so.1, libnss_compat.so.2 and libnss_files.so.2 in a directory
/lib64 (NOT /usr/lib64)? If that is the case, it's time to copy those files to
the jail using jk_cp (with -v to show what's being done):
jk_cp -v /share/sftproot/ /lib64/libnsl.so.1
jk_cp -v /share/sftproot/ /lib64/libnss_compat.so.2
jk_cp -v /share/sftproot/ /lib64/libnss_files.so.2
Anyone else with a guess on 64bit library dependencies and how to solve them?
Cheers,
Stephen