Operating System - HP-UX
1834021 Members
2214 Online
110063 Solutions
New Discussion

weird permissions problem.. need help fast!

 
SOLVED
Go to solution
Eric Ladner
Trusted Contributor

weird permissions problem.. need help fast!


# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
# whoami
root
# vgdisplay vg00
vgdisplay: Cannot open the control file "/dev/vg00/group":
Permission denied
vgdisplay: Cannot display volume group "vg00".
# ls -ld /dev/ /dev/vg00 /dev/vg00/group
dr-xr-xr-x 15 bin bin 8192 Dec 17 15:20 /dev/
drwxr-xr-x 2 root root 8192 Dec 17 10:15 /dev/vg00
crw-r----- 1 root sys 64 0x000000 Dec 17 10:15 /dev/vg00/group


Any ideas? I'm stumped!?!?
8 REPLIES 8
Eric Ladner
Trusted Contributor

Re: weird permissions problem.. need help fast!

oh.. missing details:

HP-UX 11.11, fresh install, just patched up to June 2004
Rodney Hills
Honored Contributor

Re: weird permissions problem.. need help fast!

Could their be a share lib that vgdisplay needs to run?

-- Rod Hills
There be dragons...
Robert-Jan Goossens
Honored Contributor
Solution

Re: weird permissions problem.. need help fast!

Hi Eric,

what does ll say about the owner and group

# ll /usr/sbin/vgdisplay

Robert-Jan
Rodney Hills
Honored Contributor

Re: weird permissions problem.. need help fast!

Here is a trace of the open statements executed by vgdisplay-

open("/usr/lib/dld.sl", O_RDONLY, 03560) ..................................................................... = 3
open("/opt/graphics/OpenGL/lib/libogltls.sl", O_RDONLY, 0) ................................................... ERR#2 ENOENT
open("/usr/lib/libc.2", O_RDONLY, 0) ......................................................................... = 3
open("/usr/lib/libdld.2", O_RDONLY, 0) ....................................................................... = 3
open("/usr/lib/libc.2", O_RDONLY, 0) ......................................................................... = 3
open("/etc/lvmconf//lvm_lock", O_RDWR|O_CREAT, 0) ............................................................ = 3
open("/etc/lvmtab", O_RDONLY, 020100) ........................................................................ = 4
open("/etc/lvmpvg", O_RDONLY, 0666) .......................................................................... = 4
open("/dev/vg00/group", O_RDWR, 0100) ........................................................................ = 4
open("/dev/vg00", O_RDONLY, 015750) .......................................................................... = 5

HTH

-- Rod Hills
There be dragons...
Chris Xu
Trusted Contributor

Re: weird permissions problem.. need help fast!

Could it be possible you have a corrupted group file? You don't even need root to run /usr/sbin/vgdisplay vg00.
Robert-Jan Goossens
Honored Contributor

Re: weird permissions problem.. need help fast!

Eric Ladner
Trusted Contributor

Re: weird permissions problem.. need help fast!

Bingo.. somehow the owner/group on the VG and LV commands got changed. Now I'm trying to figure out if it was the error of my fingers or a script.
Jeff Schussele
Honored Contributor

Re: weird permissions problem.. need help fast!

Wow....R-J was doing some *serious* bunny hunting there.
Great shot my friend - great shot.

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!