System Administration
Showing results for 
Search instead for 
Do you mean 

how to mount command.....

Frequent Advisor

how to mount command.....

OS : hp-ux 10.20

Dear all..
I want to make general user use mount command.
A user's Group is users.
If A user uses mount command
==>> mount: must be root to use mount

Sombody help me.... T,.T;;
8 REPLIES
Honored Contributor Honored Contributor

Re: how to mount command.....

Hi,

My recommendation would be to use the sudo command - specifically configuring the sudoers file - to allow specific users and/or groups access to the mount command.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Frequent Advisor

Re: how to mount command.....

How do you use sudo? Please......
Honored Contributor Honored Contributor

Re: how to mount command.....

Hi,


Create a file with name mount_volume( give any name) and type the required mount commands in this file. Now make SUID set on this file. Now, execution of this script will get your work done for the volumes specified in this script.


Regards,
Syam
Respected Contributor Respected Contributor

Re: how to mount command.....

Hi,

mount should stay to be administrators command for security reasons.
I'll not advice you to allow users to use it.

Regards,
Borislav
Honored Contributor Honored Contributor

Re: how to mount command.....

Sudo as was said the best choise.

Tutorials for sudo:
http://www.courtesan.com/sudo/
http://aplawrence.com/Basics/sudo.html

Software:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.8p9/

Enjoy,
Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Frequent Advisor

Re: how to mount command.....

thanks all...

all right.
Then, inform method to use su-root without passwd. because i like use in a script
Honored Contributor Honored Contributor

Re: how to mount command.....

You have this option in SUDO, just read the manual.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Honored Contributor Honored Contributor

Re: how to mount command.....

hi,

see also: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=939745

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)