mc cons.saver not work for normal user

rekcah rekcah at szm.com
Thu Jun 1 18:47:43 UTC 2006


Hi.

I have one problem with mc. When I run mc as a root, everything
is ok. But when I try to run it as a normal user, subshell doesnt
save the content of the console ouput. 

How to reproduce bug: I am in a blue panels and press ctrl-o to go to 
the subshell. Run some commands, then ctrl-o back to blue panels, then 
back to subshel via ctrl-o - the screen is completely black. 

The distribution is my own one based on a fedora core 4. In the 
FC4 "normal" instalation everything works fine, even with a normal user.
Here is few messages:

# mc -V
GNU Midnight Commander 4.6.1a
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish, undelfs
With builtin Editor
Using system-installed S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support

# uname -a
Linux localhost 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:53:35 EDT 2005 i586 i586 i386 GNU/Linux

# ls -l /usr/lib/mc/cons.saver
-rwsrwxrwx 1 root root 5696 May 5 2005 /usr/lib/mc/cons.saver

# ls -l /dev/pt*
crw-rw-rw- 1 root tty 5, 2 Jun 1 15:05 /dev/ptmx

/dev/pts:
total 0
crw--w---- 1 root tty 136, 0 Jun 1 15:05 0

# lsmod
Module Size Used by
md5 4033 1 
ipv6 266433 8 

# ldd /usr/bin/mc
 linux-gate.so.1 => (0x00e80000)
 libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x007a0000)
 libdl.so.2 => /lib/libdl.so.2 (0x00111000)
 libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00bc0000)
 libext2fs.so.2 => /lib/libext2fs.so.2 (0x0084a000)
 libcom_err.so.2 => /lib/libcom_err.so.2 (0x00749000)
 libgpm.so.1 => /usr/lib/libgpm.so.1 (0x00775000)
 libslang-utf8.so.1 => /usr/lib/libslang-utf8.so.1 (0x00115000)
 libnsl.so.1 => /lib/libnsl.so.1 (0x00187000)
 libc.so.6 => /lib/libc.so.6 (0x0019b000)
 /lib/ld-linux.so.2 (0x00398000)
 libm.so.6 => /lib/libm.so.6 (0x002b8000)

# cat /etc/udev/udev.conf
udev_root="/dev"
udev_db="/dev/.udevdb"
udev_rules="/etc/udev/rules.d"
udev_log="err"

# ps x
 PID TTY STAT TIME COMMAND
 1 ? S 0:02 init [3] 
 2 ? SN 0:00 [ksoftirqd/0]
 3 ? S 0:00 [watchdog/0]
 4 ? S< 0:00 [events/0]
 5 ? S< 0:00 [khelper]
 6 ? S< 0:00 [kthread]
 8 ? S< 0:00 [kblockd/0]
 11 ? S 0:00 [khubd]
 32 ? S 0:00 [kapmd]
 66 ? S 0:00 [pdflush]
 67 ? S 0:00 [pdflush]
 69 ? S< 0:00 [aio/0]
 68 ? S 0:00 [kswapd0]
 157 ? S 0:00 [kseriod]
 690 ? Ss 0:00 syslogd -m 0
 695 ? Ss 0:00 klogd -x
 714 ? Ss 0:00 /usr/sbin/sshd
 806 ? Ss 0:00 login -- root 
 809 ? Ss 0:00 login -- root 
 810 tty3 Ss+ 0:00 /sbin/mingetty tty3
 811 tty4 Ss+ 0:00 /sbin/mingetty tty4
 840 tty5 Ss+ 0:00 /sbin/mingetty tty5
 843 tty6 Ss+ 0:00 /sbin/mingetty tty6
 876 ? S< 0:00 [kauditd]
 877 tty1 Ss 0:00 -bash
 936 tty1 S+ 0:08 /usr/bin/mc -P /tmp/mc-root/mc.pwd.877
 937 ? Ss 0:00 cons.saver /dev/tty1
 938 pts/0 Ss+ 0:00 bash -rcfile .bashrc
 940 tty2 Ss 0:00 -bash
 994 tty2 R+ 0:00 ps x

# mount 
/dev/hda1 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)

# ls -l /dev/vc*
crw-rw---- 1 vcsa tty 7, 0 Jun 1 15:02 /dev/vcs
crw-rw---- 1 vcsa tty 7, 1 Jun 1 15:02 /dev/vcs1
crw-rw---- 1 vcsa tty 7, 128 Jun 1 15:02 /dev/vcsa
crw-rw---- 1 vcsa tty 7, 129 Jun 1 15:02 /dev/vcsa1

# ls -l /dev/tty[1-4]
crw--w---- 1 root tty 4, 1 Jun 1 15:25 /dev/tty1
crw--w---- 1 root tty 4, 2 Jun 1 15:26 /dev/tty2
crw--w---- 1 guest tty 4, 3 Jun 1 15:24 /dev/tty3
crw------- 1 root root 4, 4 Jun 1 15:02 /dev/tty4

# ls -l /dev/pts/*
crw--w---- 1 root tty 136, 0 Jun 1 15:05 /dev/pts/0
crw--w---- 1 guest tty 136, 1 Jun 1 15:23 /dev/pts/1

# bash --version
GNU bash, version 3.00.16(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

# dmesg

Linux version 2.6.11-1.1369_FC4 (bhcompile at tweety.build.redhat.com)
(gcc version 4.0.0 20050525 (Red Hat 4.0.0-9)) #1 Thu Jun 2 22:53:35
EDT 2005

BIOS-provided physical RAM map:

BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)

BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)

BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)

BIOS-e820: 0000000000100000 - 0000000004000000 (usable)

BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)

0MB HIGHMEM available.

64MB LOWMEM available.

Using x86 segment limits to approximate NX protection

On node 0 totalpages: 16384

 DMA zone: 4096 pages, LIFO batch:1

 Normal zone: 12288 pages, LIFO batch:7

 HighMem zone: 0 pages, LIFO batch:1

DMI 2.0 present.

ACPI: Unable to locate RSDP

Allocating PCI resources starting at 04000000 (gap: 04000000:fbff0000)

Built 1 zonelists

Kernel command line: auto BOOT_IMAGE=linux root=302 BOOT_FILE=/boot/bzImage

Initializing CPU#0

CPU 0 irqstacks, hard=c044a000 soft=c0449000

PID hash table entries: 1024 (order: 10, 16384 bytes)

Detected 133.281 MHz processor.

Using tsc for high-res timesource

Console: colour VGA+ 80x25

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory: 59784k/65536k available (2467k kernel code, 5336k reserved, 685k data, 184k init, 0k highmem)

Checking if this processor honours the WP bit even in supervisor mode... Ok.

Calibrating delay loop... 260.09 BogoMIPS (lpj=130048)

Security Framework v1.0.0 initialized

SELinux: Initializing.

SELinux: Starting in permissive mode

selinux_register_security: Registering secondary module capability

Capability LSM initialized as secondary

Mount-cache hash table entries: 512

CPU: After generic identify, caps: 000001bf 00000000 00000000 00000000 00000000 00000000 00000000

CPU: After vendor identify, caps: 000001bf 00000000 00000000 00000000 00000000 00000000 00000000

Intel Pentium with F0 0F bug - workaround enabled.

CPU: After all inits, caps: 000001bf 00000000 00000000 00000000 00000000 00000000 00000000

CPU: Intel Pentium 75 - 200 stepping 06

Checking hlt instruction... OK.

checking if image is initramfs... it is

softlockup thread 0 started up.

Freeing initrd memory: 981k freed

NET: Registered protocol family 16

PCI: PCI BIOS revision 2.10 entry at 0xf0510, last bus=0

PCI: Using configuration type 1

mtrr: v2.0 (20020519)

ACPI: Subsystem revision 20050309

ACPI: Interpreter disabled.

Linux Plug and Play Support v0.97 (c) Adam Belay

pnp: PnP ACPI: disabled

usbcore: registered new driver usbfs

usbcore: registered new driver hub

PCI: Probing PCI hardware

PCI: Probing PCI hardware (bus 00)

Boot video device is 0000:00:0b.0

PCI: Using IRQ router PIIX/ICH [8086/7110] at 0000:00:01.0

apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)

audit: initializing netlink socket (disabled)

audit(1149188545.542:1): initialized

Total HugeTLB memory allocated, 0

VFS: Disk quotas dquot_6.5.1

Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

SELinux: Registering netfilter hooks

Initializing Cryptographic API

ksign: Installing public key data

Loading keyring

- Added public key F8472E5DA68A03D6

- User ID: Red Hat, Inc. (Kernel Module GPG key)

Limiting direct PCI/PCI transfers.

pci_hotplug: PCI Hot Plug PCI Core version: 0.5

isapnp: Scanning for PnP cards...

pnp: SB audio device quirk - increasing port range

isapnp: Card Creative ViBRA16X PnP

isapnp: 1 Plug & Play card detected total

Real Time Clock Driver v1.12

Linux agpgart interface v0.101 (c) Dave Jones

PNP: No PS/2 controller found. Probing ports directly.

serio: i8042 AUX port at 0x60,0x64 irq 12

serio: i8042 KBD port at 0x60,0x64 irq 1

Serial: 8250/16550 driver $Revision: 1.90 $ 76 ports, IRQ sharing enabled

ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered

RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

PIIX4: IDE controller at PCI slot 0000:00:01.1

PIIX4: chipset revision 1

PIIX4: not 100% native mode: will probe irqs later

 ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hda:DMA, hdb:pio

 ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:DMA, hdd:pio

Probing IDE interface ide0...

hda: WDC AC26400B, ATA DISK drive

ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

Probing IDE interface ide1...

hdc: CD-540E, ATAPI CD/DVD-ROM drive

ide1 at 0x170-0x177,0x376 on irq 15

hda: max request size: 128KiB

hda: 12594960 sectors (6448 MB) w/512KiB Cache, CHS=13328/15/63, UDMA(33)

hda: cache flushes not supported

hda: hda1 hda2 hda3

hdc: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)

Uniform CD-ROM driver Revision: 3.20

ide-floppy driver 0.99.newide

usbcore: registered new driver hiddev

usbcore: registered new driver usbhid

drivers/usb/input/hid-core.c: v2.01:USB HID core driver

mice: PS/2 mouse device common for all mice

md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27

NET: Registered protocol family 2

IP: routing cache hash table of 128 buckets, 4Kbytes

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 4, 114688 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

Initializing IPsec netlink socket

NET: Registered protocol family 1

NET: Registered protocol family 17

Freeing unused kernel memory: 184k freed

input: AT Translated Set 2 keyboard on isa0060/serio0

input: ImPS/2 Generic Wheel Mouse on isa0060/serio1

Adding 1992k swap on /SWAP. Priority:-1 extents:2

NET: Registered protocol family 10

Disabled Privacy Extensions on device c03d9780(lo)

IPv6 over IPv4 tunneling driver

smc-ultra.c: Presently autoprobing (not recommended) for a single card.

smc-ultra.c:v2.02 2/3/98 Donald Becker (becker at cesdis.gsfc.nasa.gov)

eth%d: SMC Ultra at 0x300, 00 00 C0 9E AB BC, IRQ 10 memory 0xd0000-0xd3fff.




I hope someone can help me with this, thanks.

Dusan Halicky
dvh.tosomja at post.sk 




=== reklama ======================================

http://mail.szm.com - e-mail a priestor na www stranku zadarmo

http://webhosting.szm.com - domeny a webhosting za najnizsie ceny




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20060601/a072e562/attachment.html>


More information about the mc mailing list