Error with "Jailkit and Debian Wheezy" (numerical user and group of files)

Discussion in 'Tips/Tricks/Mods' started by robertom, Nov 19, 2013.

  1. robertom

    robertom New Member

    Hi, sorry for my bad english.

    I encountered some problems with the use of jailkit in debian wheezy.

    After a new installation of debian and ispconfig 3 I've created a new ssh user "jailed" and I can login without problems, but user and group of files have numeric value instead of correct user:group

    Code:
    [email protected]:~$ ls -la /web
    total 36
    drwx--x---  4 5004 5005 4096 Nov 19 10:16 .
    drwxr-xr-x 19 0    0    4096 Nov 18 23:30 ..
    -rwxr-xr--  1 5004 5005   26 Nov 18 13:50 .htaccess
    drwxr-xr-x  2 5004 5005 4096 Nov 18 13:50 error
    -rwxr-xr--  1 5004 5005 7358 Nov 18 13:50 favicon.ico
    -rwxr-xr--  1 5004 5005 1861 Nov 18 13:50 index.html
    -rwxr-xr--  1 5004 5005   14 Nov 18 13:50 robots.txt
    drwxr-xr-x  2 0    0    4096 Nov 19 09:59 stats
    
    when I try to scp a file on server I have an error

    Code:
    [email protected]:~$ scp test.php [email protected]:/home/roberto
    unknown user 5004
    
    this problem is due to a new library path in Debian Wheezy bug #38596

    after applied the patch I've updated my jail with:

    Code:
    jk_init -f -k -c /etc/jailkit/jk_init.ini -j /var/www/clients/client1/web3 uidbasics netbasics
    
    and the error is gone...

    Code:
    [email protected]:~$ ls -la /web
    total 36
    drwx--x---  4 roberto client1 4096 Nov 19 10:16 .
    drwxr-xr-x 19 root    root    4096 Nov 18 23:30 ..
    -rwxr-xr--  1 roberto client1   26 Nov 18 13:50 .htaccess
    drwxr-xr-x  2 roberto client1 4096 Nov 18 13:50 error
    -rwxr-xr--  1 roberto client1 7358 Nov 18 13:50 favicon.ico
    -rwxr-xr--  1 roberto client1 1861 Nov 18 13:50 index.html
    -rwxr-xr--  1 roberto client1   14 Nov 18 13:50 robots.txt
    drwxr-xr-x  2 root    root    4096 Nov 19 09:59 stats
    
     

Share This Page