Problem with SUDO on HPUX 11.0

Pete Wieckowski pete at winfirst.com
Fri Dec 14 17:44:17 EST 2001


Hi there,

    I'm having some issues running a shell from sudo and then listing
directories inside an nfs mount. If I run sudo, then su, it works fine,
unfortunately I need it to work the proper way so I can give access to some
of my monkeys. Here's what I get:

$ sudo /usr/bin/sh
# echo $SHELL
/usr/bin/sh
# whoami
root
# ls /var/CommuniGate/SharedDomains
Accounts      Directory     Queue         SystemLogs
BadFiles      Domains       Settings
# ls /var/CommuniGate/SharedDomains/Directory
/var/CommuniGate/SharedDomains/Directory unreadable

now if I:
# su
# echo $SHELL
/usr/bin/sh
# whoami
root
# ls /var/CommuniGate/SharedDomains
Accounts      Directory     Queue         SystemLogs
BadFiles      Domains       Settings
# ls /var/CommuniGate/SharedDomains/Directory
AccessRights.settings  Main.schema            Storage.settings
Main.data              Main.updates
#

It works.

Has anyone seen this kind of problem before? This is happening on an HP-UX
11.0 box. Here's the mount info:

#
# cat /etc/fstab
# System /etc/fstab file.  Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
NASmail:/NASmail/SharedDomains /var/CommuniGate/SharedDomains nfs rw,suid 0
0
#
# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     163840   30183  125344   19% /
/dev/vg00/lvol1      83733   37042   38317   49% /stand
/dev/vg00/lvol8    1228800  313375  858710   27% /var
/dev/vg00/lvol7    1638400  508001 1059797   32% /usr
/dev/vg00/lvol6     524288    1373  490364    0% /tmp
/dev/vg00/lvol5    2097152  371735 1617588   19% /opt
/dev/vg00/lvol4     524288  420579   97229   81% /home
NASmail:/NASmail/SharedDomains
                   209688376  755456 208932920    0%
/var/CommuniGate/SharedDomains


Thanks,
    Pete Wieckowski
    pete at winfirst.com





More information about the sudo-users mailing list