Operating System - HP-UX
1751883 Members
5635 Online
108783 Solutions
New Discussion юеВ

Re: how to mount command.....

 
Kyu-Yong Kwon
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 8
Jeff Schussele
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!
Kyu-Yong Kwon
Frequent Advisor

Re: how to mount command.....

How do you use sudo? Please......
Ranjith_5
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
Borislav Perkov
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
Alex Lavrov.
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)
Kyu-Yong Kwon
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
Alex Lavrov.
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)
Yogeeraj_1
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)