Home » General » Support » /dev/null: Permission denied :: in VE @ 2.6.18
/dev/null: Permission denied :: in VE @ 2.6.18 [message #9123] |
Tue, 19 December 2006 06:33 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Hi, I am unable to open /dev/null despite correct permissions. Any ideas?
[root@magnesium ~]# uname -a
Linux magnesium 2.6.18-028test007 #2 SMP Mon Dec 11 11:38:34 EST 2006 i686 i686 i386 GNU/Linux
[root@magnesium ~]# vzctl enter 9889760
entered into VE 9889760
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
-bash: /dev/null: Permission denied
[root@airh /]# ls -al /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 19 01:22 /dev/null
[root@airh /]# cat /etc/redhat-release
CentOS release 4.4 (Final)
[root@airh /]# rm -rf /dev/null
[root@airh /]# mknod /dev/null c 1 3; chmod 666 /dev/null
[root@airh /]# ls -al /dev/null
crw-rw-rw- 1 root root 1, 3 Dec 19 01:26 /dev/null
[root@airh /]#
[root@airh /]# cat /proc/mounts
simfs / simfs rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
[root@airh /]#
[root@airh /]# strace -ff cat /dev/null
execve("/bin/cat", ["cat", "/dev/null"], [/* 16 vars */]) = 0
uname({sys="Linux", node="airh.mine.nu", ...}) = 0
brk(0) = 0x804d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26105, ...}) = 0
old_mmap(NULL, 26105, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef3000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320N\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1521908, ...}) = 0
old_mmap(NULL, 1223900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dc8000
old_mmap(0xb7eed000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x124000) = 0xb7eed000
old_mmap(0xb7ef1000, 7388, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef1000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dc7000
mprotect(0xb7eed000, 8192, PROT_READ) = 0
mprotect(0xb7f10000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dc7aa0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7ef3000, 26105) = 0
brk(0) = 0x804d000
brk(0x806e000) = 0x806e000
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
open("/dev/null", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
write(2, "cat: ", 5cat: ) = 5
write(2, "/dev/null", 9/dev/null) = 9
write(2, ": Permission denied", 19: Permission denied) = 19
write(2, "\n", 1
) = 1
close(1) = 0
exit_group(1) = ?
Process 31754 detached
[root@airh /]#
[root@magnesium ~]# vzctl restart 9889760
Restarting VE
Stopping VE ...
VE was stopped
VE is unmounted
Starting VE ...
VE is mounted
Adding IP address(es): 72.29.79.35 72.29.79.40
bash: line 443: /dev/null: Permission denied
bash: line 345: /dev/null: Permission denied
bash: line 66: /dev/null: Permission denied
bash: line 66: /dev/null: Permission denied
bash: line 316: /dev/null: Permission denied
bash: line 416: /dev/null: Permission denied
bash: line 421: /dev/null: Permission denied
bash: line 387: /dev/null: Permission denied
bash: line 407: /dev/null: Permission denied
bash: line 387: /dev/null: Permission denied
bash: line 407: /dev/null: Permission denied
bash: line 431: /dev/null: Permission denied
Setting CPU limit: 49
Setting CPU units: 4500
Setting devices
Set hostname: airh
bash: line 301: /dev/null: Permission denied
bash: line 304: /dev/null: Permission denied
bash: line 157: /dev/null: Permission denied
bash: line 66: /dev/null: Permission denied
File resolv.conf was modified
Setting quota ugidlimit: 450
VE start in progress...
[root@magnesium ~]#
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
[Updated on: Tue, 19 December 2006 07:08] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Wed Aug 21 19:38:28 GMT 2024
Total time taken to generate the page: 0.03176 seconds
|