jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] /dev/null - Permission denied


From: Branislav Viest
Subject: Re: [Jailkit-users] /dev/null - Permission denied
Date: Sun, 24 Nov 2019 17:39:29 +0100 (CET)

  File: /dev/null
  Size: 0             Blocks: 0          IO Block: 4096   character special file
Device: 6h/6d    Inode: 1028        Links: 1     Device type: 1,3
Access: (0666/crw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-11-21 20:47:38.200000000 +0000
Modify: 2019-11-21 20:47:38.200000000 +0000
Change: 2019-11-23 18:48:33.959734698 +0000
 Birth: -

  File: /var/www/XXXXX/dev/null
  Size: 0             Blocks: 0          IO Block: 4096   character special file
Device: 801h/2049d    Inode: 491538      Links: 1     Device type: 1,3
Access: (0666/crw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-11-23 18:42:32.626820533 +0000
Modify: 2019-11-23 18:42:32.626820533 +0000
Change: 2019-11-23 18:42:39.586838137 +0000
 Birth: -

------------
S přátelským pozdravem / Best Regards

Branislav Viest


Od: "Olivier Sessink" <address@hidden>
Komu: "jailkit-users" <address@hidden>
Odoslané: nedeľa, 24. november 2019 17:18:43
Predmet: Re: [Jailkit-users] /dev/null - Permission denied

On 24-11-19 12:57, Branislav Viest wrote:
Hello guys,

I am experiencing strange problem under Debian Buster (not tested on Debian Stretch) with Jailkit and SSH. In the Jailkit chroot / jail I want to use SSH client (incl. SCP and rsync over SSH) but I always got error:

Couldn't open /dev/null: Permission denied

I tried to re-create /dev/null under chroot and in the base system, perms looks fine. I also tried to create a brand new jailkit chroot but same error out there. I read all about this issue on internet resources but I am not able to get it working... Any ideas? It is serious issue for me and our clients.

Perms in /dev in chroot:

$ ls -l /dev
total 4
srw-rw-rw- 1 root root    0 Nov 22 09:14 log
crw-rw-rw- 1 root root 1, 3 Nov 24 10:52 null
drwxr-xr-x 2 root root 4096 Oct 18 07:16 pts
crw-rw-rw- 1 root root 1, 8 Oct 16 11:13 random
crw-rw-rw- 1 root root 5, 0 Oct 16 11:13 tty
crw--w---- 1 root root 4, 0 Oct 16 11:13 tty0
crw--w---- 1 root root 4, 4 Oct 16 11:13 tty4
crw-rw-rw- 1 root root 1, 9 Oct 16 11:13 urandom

Perms in /dev in base system:
ls -l /dev | grep null
crw-rw-rw- 1 root root      1,   3 říj 19 20:28 null


what does

stat /dev/null

stat <path to jail>/de/null

look like?


Olivier


-- 
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/

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