From: Lars Braeuer (lbraeuer_at_mpex.net)
Date: Wed 09 Oct 2002 - 10:46:39 BST
I had a problem with ssh too. it worked to a certain point and then it just stuck.
at another point I wasn't able to su from a user to root.
I found out that somehow several device nodes were missing. I was able to solve the
problem by creating the nodes using the mknod binary from the host system.
crw-rw-rw- 1 root root 5, 2 Sep 15 15:46 ptmx
crw-rw-rw- 1 root root 1, 9 Sep 15 18:01 urandom
crw-rw-rw- 1 root root 5, 0 Oct 5 23:32 tty
crw--w---- 1 root tty 4, 0 Oct 5 23:32 tty0
crw-rw---- 1 root tty 4, 1 Oct 5 23:32 tty1
crw--w---- 1 root tty 4, 10 Oct 5 23:32 tty10
crw--w---- 1 root tty 4, 11 Oct 5 23:32 tty11
crw--w---- 1 root tty 4, 12 Oct 5 23:32 tty12
crw--w---- 1 root tty 4, 13 Oct 5 23:32 tty13
crw--w---- 1 root tty 4, 14 Oct 5 23:32 tty14
crw--w---- 1 root tty 4, 15 Oct 5 23:32 tty15
crw--w---- 1 root tty 4, 16 Oct 5 23:32 tty16
crw--w---- 1 root tty 4, 17 Oct 5 23:32 tty17
crw--w---- 1 root tty 4, 18 Oct 5 23:32 tty18
crw--w---- 1 root tty 4, 19 Oct 5 23:32 tty19
crw-rw---- 1 root tty 4, 2 Oct 5 23:32 tty2
crw--w---- 1 root tty 4, 20 Oct 5 23:32 tty20
crw-rw---- 1 root tty 4, 3 Oct 5 23:32 tty3
crw-rw---- 1 root tty 4, 4 Oct 5 23:32 tty4
crw-rw---- 1 root tty 4, 5 Oct 5 23:32 tty5
crw-rw---- 1 root tty 4, 6 Oct 5 23:32 tty6
crw--w---- 1 root tty 4, 7 Oct 5 23:32 tty7
crw--w---- 1 root tty 4, 8 Oct 5 23:32 tty8
crw--w---- 1 root tty 4, 9 Oct 5 23:32 tty9
just wanted to let you and other people know.
Paul Sladen wrote:
> On Wed, 9 Oct 2002, Georges Toth wrote:
>
>>yesterday i thought my problems with logins not working, were solved,
>>[..] ssh-root login works, but any other login doesn't work.
>
>
> Is there any error-output from using `-v' to SSH:
>
> $ ssh -v user_at_vserver
>
>
>>in fact NO program works which accesses files.
>
>
> Is this even when you've logged in as root to the vserver?
>
>
>>and even if logged in as root, and the user variable in shell,
>
>
> Are you definitely ``root'' within the vserver; what does this show:
>
> $ grep -A99 s_context /proc/self/status
>
>
>>actions like hostname, end with an "must be root" error.
>
>
> They don't care about the environment ("USER="), only the numeric user id,
> which you can find out by doing (is this zero?):
>
> $ id
>
>
>>and logs are filled with "cannot open file, permission denied" errors.
>
>
> Can you create/view files with simple utilities like:
>
> $ touch test-file
> $ cat > test-file-2
> $ cat /etc/passwd
>
>
>>(machine running kernel2.4.19+xfs+vserver, devfs, /dev/pts, latest stable
>>libs,...)
>
>
> Is there a conflict with devfs and it's handling of `/dev' nodes?
> Are other people running with devfs successfully? I really have no
> idea how it works /within/ vservers...
>
> -Paul