Operating System - HP-UX
1826499 Members
1716 Online
109692 Solutions
New Discussion

Re: pfs_mount commands and sudo

 
James A. Donovan
Honored Contributor

pfs_mount commands and sudo

I'd appreciate it if someone could provide an example of what they have done to provide their Oracle DBA's with the ability to mount those damn CD's.

I've tried a couple of things in /etc/sudoers (like setting NOPASSWD on /usr/sbin/pfs_mountd and /usr/sbin/pfsd), but I'm ending up with RPC error messages when trying to do things that way....
Remember, wherever you go, there you are...
6 REPLIES 6
Michael Tully
Honored Contributor

Re: pfs_mount commands and sudo

Hi,

I for one would not want DBA's anywhere near
using the pfs set of commands. pfs is so
diabolical, one little error could create
a mistake and hence a reboot required. If
you must why not set a restricted sam, if
you cannot get sudo working. I would rather
be bothered for a short time and do this
myself than have a DBA that doesn't know
what they are doing cause some problems.

Attached is a link to how to do the pfs
mounting anyway.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1785972194d6d5118ff40090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x53e7d211e18ad5118ff10090279cd0f9,00.html

-Michael
Anyone for a Mutiny ?
Magdi KAMAL
Respected Contributor

Re: pfs_mount commands and sudo

Hi Jim,

Here it is :

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
# /usr/sbin/pfs_mount /SD_CDROM

Attention:
If you try to bypass these last steps, you may be confronted to the following console error message that oblige you to reboot your system !

NFS server not responding still trying

So attention.

Magdi
James A. Donovan
Honored Contributor

Re: pfs_mount commands and sudo

...so used to doing everything from the command line I forgot that restricted SAM sessions were possible...thanks for the suggestion...

I'm still interested if anyone out there knows the correct entries (configuration) to allow the process to be accomplished with the use of sudo.
Remember, wherever you go, there you are...
James A. Donovan
Honored Contributor

Re: pfs_mount commands and sudo

figured out what I could do....

placed the pfs_mountd and pfsd commands in a script, and gave the users permission to execute the script via sudo....
Remember, wherever you go, there you are...
Glenn L. Stewart
Frequent Advisor

Re: pfs_mount commands and sudo

I agree with Michael - to a degree.
The bug with pfs_mount is related to killing the deamons before pfs_umounting.

A pfs_umount must be performed before kill pfsd/pfs_mountd. The only way to kill the pfs_umount's after this occurs is to perform a reboot.

Worth noting that SAP has released Oracle CD's that are not as particular as to need pfs_mount. They mount without a hitch with mount.

Glenn
Glenn L. Stewart
Frequent Advisor

Re: pfs_mount commands and sudo

Jim,

Worth reading document id: A4755662B if you plan to create scripts to help the DBA's mount the Oracle CD's using pfs_mount.

This document will explain the reason for pfs_mount hangs and therefore how to avoid such happening.

Glenn