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

From: Charles Baker (charles.baker_at_datastream.net)
Date: Wed 20 Oct 2004 - 16:03:01 BST


Thanks, that appears to have done the trick. I appreciate it.

-----Original Message-----
From: Herbert Poetzl [mailto:herbert_at_13thfloor.at]
Sent: Wednesday, October 20, 2004 10:34 AM
To: Charles Baker
Cc: vserver_at_list.linux-vserver.org
Subject: Re: [Vserver] /dev/null

On Tue, Oct 19, 2004 at 05:15:18PM -0400, Charles Baker wrote:
> I'm using some vservers on RedHat 7.3 w/ kernel 2.4.24-vs1.26. I'm
> running apache and jboss on the vservers. I've been patching our
custom
> ears, jars etc. Now all of a sudden the /dev/null devices on two of
the
> vservers are showing up as rw-r--r-- instead of crw-rw-rw- . I noticed
> this when switching to a non-root user and bash reports:
>
> bash: /dev/null: Permission denied
>
> And when I try to start jboss I get:
>
> run.sh: /dev/null: Permission denied
>
> jboss never starts. Any ideas before I go monkeying around and try to
> recreate the device.

hmm, well, I'd say some smart 'root' user removed the
device (which is possible inside a vserver) and then
failed to recreate it (because that isn't allowed inside
a vserver) so s/he decided to create a file instead ..

(probably nobody will notice ;)

if that 'theory' doesn't hold, you are encountering severe
filesystem corruption and I'd suggest to check the fs
immediately ...

> Can I even recreate a device in a vserver?

yes, you can, given that you have proper capabilities,
but for sure you can create the device from 'outside'
so a simple 'cp -va /dev/null /vservers/<name>/dev/null'
should be sufficient

HTH,
Herbert

> ----
> Charles H. Baker
> O: 864.422.5349 C: 864.201.8456
> charles.baker_at_datastream.net
> Whatever you vividly imagine, ardently desire, sincerely believe and
> enthusiastically act upon must inevitably come to pass! -- Paul J.
Meyer
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


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 Wed 20 Oct 2004 - 16:03:16 BST by hypermail 2.1.3