About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Mon 16 Dec 2002 - 15:13:31 GMT


On Mon, Dec 16, 2002 at 03:51:39PM +0100, Nico Erfurth wrote:
> Hi list,
>
> I'm new to vservers, but not new to linux.
>
> I've setup vservers with 2.4.20-ctx16 and it mostly worked fine at the
> first look, but now I run into trouble :-/
>
> After adding a user and try to su to the new user, it get this error.
>
> root_at_smtp ~# su user
> su: cannot run /bin/bash: Permission denied
>
> ssh user_at_vserver does fail too.
>
> I checked the strace log of su user and found some strange things.
>
> Everything works fine, till this point:

please add a ls -la of each path element to /etc/pwdb.conf

> close(4) = 0
> read(3, "", 4096) = 0
> close(3) = 0
> munmap(0x4015e000, 4096) = 0
> getuid() = 0
> setfsuid(500) = 0 <--- is this the problem?
> open("/etc/pwdb.conf", O_RDONLY) = -1 EACCES (Permission denied)
> getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
> setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
> getuid() = 0
> getuid() = 0
> ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> readlink("/proc/self/fd/0", 0xbffff7fc, 511) = -1 EACCES (Permission denied)

and a ls -la of /proc/self/fd/0 as well as the target
of this symbolic link ...

> fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 3), ...}) = 0
>
> and so on .... every open() fails with EACCES.
>
> The permissions on the files are correct.
>
> Any hints?
> Something I should have a look into?

http://www.paul.sladen.org/vserver/faq/
and
http://www.paul.sladen.org/vserver/archives/

best,
Herbert

>
> ciao


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 16 Dec 2002 - 15:49:05 GMT by hypermail 2.1.3