problem with setting up ssh chroot account
Garey Mills
garey.mills at gmail.com
Wed Mar 28 10:02:29 EST 2012
To keep the conversation going, here are listings of my chroot directory's
dev and dev/pts directories and the listing of the OS's /dev/pts directory
[root at dlab-gis dev]# ls -l
total 0
crw-rw-rw-. 1 root root 1, 3 Mar 19 14:28 null
drwxr-xr-x. 2 root root 0 Aug 17 2011 pts
crw-rw-rw-. 1 root root 5, 0 Mar 19 14:29 tty
crw-r--r--. 1 root root 1, 9 Mar 19 14:28 urandom
crw-rw-rw-. 1 root root 1, 5 Mar 19 14:29 zero
[root at dlab-gis dev]# cd pts
[root at dlab-gis pts]# ls -l
total 0
crw--w----. 1 gmills tty 136, 0 Mar 27 16:44 0
c---------. 1 root root 5, 2 Aug 17 2011 ptmx
[root at dlab-gis pts]# ls /dev/pts
0 ptmx
[root at dlab-gis pts]# ls -l /dev/pts
total 0
crw--w----. 1 gmills tty 136, 0 Mar 27 16:45 0
c---------. 1 root root 5, 2 Aug 17 2011 ptmx
The devpts partition is mounted at /dev/pts and /home/jail/dev/pts. Perhaps
this is the problem?
Garey Mills
On Tue, Mar 27, 2012 at 1:41 PM, Garey Mills <garey.mills at gmail.com> wrote:
>
>
> On Tue, Mar 27, 2012 at 1:28 PM, Ángel González <keisial at gmail.com> wrote:
>
>> On 27/03/12 19:53, Garey Mills wrote:
>> > Dag-Erling -
>> >
>> > Thanks for the response. Definitely changed the error message. Now
>> I'm
>> > getting
>> >
>> > Mar 27 11:34:52 dlab-gis sshd[11121]: error: open /dev/tty
>> > failed - could not set controlling tty: Permission denied
>> >
>> > Any thoughts?
>> >
>> > Garey Mills
>> Well, what are the permissions of the /dev/tty device inside the chroot?
>> Is it indeed a character device with major number 5 and minor 0?
>>
>> It is supposed to link the process with its controlling terminal.
>>
>>
> crw-rw-rw-. 1 root root 5, 0 Mar 19 14:29 tty
>
>
> --
> The brain is not where you think.
> Me
>
>
--
The brain is not where you think.
Me
More information about the openssh-unix-dev
mailing list