- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mt_cd ???
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 06:09 AM
09-26-2001 06:09 AM
mt_cd ???
a user asked me to install mt_cd command to some hpux workstation... i have never heard about it.. is it possible to install it?? i saw that there isn't any manual with this entry...
any tip??
Thanks in advance.
Tarek
- Tags:
- mount CD DVD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 06:13 AM
09-26-2001 06:13 AM
Re: mt_cd ???
Could they have an alias set up something like
alias mt_cd="mount /dev/dsk/c?t?d? /cdrom"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 06:16 AM
09-26-2001 06:16 AM
Re: mt_cd ???
But you cant mount a cd unless you have a user id of 0 wich is a superuser that is just as powerfull as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 06:30 AM
09-26-2001 06:30 AM
Re: mt_cd ???
If it is mounting a CD as the others suggest, you can configure the automounter to do that for you. The CD will be mounted when the user accesses the mountpoint and will be unmounted after a certain time of inactivity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 06:55 AM
09-26-2001 06:55 AM
Re: mt_cd ???
Some users want to be able to mount and umount CD's whenever they want, so they don't have to call me each time to do that.
How can i configure this auomatically as suggested before with automounter??
Thanks
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:21 AM
09-26-2001 07:21 AM
Re: mt_cd ???
Create a file in /usr/bin with the mt_cd and have this entry in that file
mount -r /dev/dsk/c?t?d? /cdrom
Here c?t?d? is the device file name for the Cdrom as shown be "ioscan -fnC disk"
Change the permission of the file to 755. your users should now be able to use this command to mount the cdrom.
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:31 AM
09-26-2001 07:31 AM
Re: mt_cd ???
mount: must be root to use mount
any further help?? Thanks very much.
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:37 AM
09-26-2001 07:37 AM
Re: mt_cd ???
your user might have wanted a script to mount the cd instead of issuing command.
put the CD mounting command in a file and add in PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:46 AM
09-26-2001 07:46 AM
Re: mt_cd ???
Sudo allows non-root users to run commands, as set up by you, as root without knowing the root passwd.
You can get sudo here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/
Once that is done, you could set up the mt_cd script as something like:
sudo mount /dev/dsk/c?t?d0 /cdrom
The script and users would then need to be set up in the /etc/sudoers file and then when the user enters mt_cd, they will be prompted for their password and the cd will be mounted.
You should probably also set up a umt_cd script with something like:
sudo umount /cdrom
so that the user can also unmount the cd when they are finished.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:51 AM
09-26-2001 07:51 AM
Re: mt_cd ???
here is a link where that talks about the same probem that you are having now.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xca1d8ffa98a2d5118ff10090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:55 AM
09-26-2001 07:55 AM
Re: mt_cd ???
/usr/sbin/mount -r /dev/dsk/c1t2d0 /SD_CDROM and i've added it in the PATH, but i still have that error while i try to run it as a user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 08:28 AM
09-26-2001 08:28 AM
Re: mt_cd ???
Then i created the file /usr/bin/mt_cd with this entry:
/opt/sudo/bin/sudo /usr/sbin/mount -r /dev/dsk/c1t2d0 /SD_CDROM
but how coud i configure the /etc/sudoers ??
if i do man sudo i have no entry, and also when i try to view /opt/sudo/man/man8/sudo.8 i have a not clear file..
so please help me again...
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 10:10 AM
09-26-2001 10:10 AM
Re: mt_cd ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 10:21 AM
09-26-2001 10:21 AM
Re: mt_cd ???
to be able to search man pages using man -k you need to recreate the index using catman -w
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 11:44 PM
09-26-2001 11:44 PM
Re: mt_cd ???
- Add line "/- /etc/auto_direct" to file /etc/auto_master.
- Create file /etc/auto_direct and put the following line in this file : "/cdrom -ro,fstype=cdfs :/dev/dsk/c?t?d0"
"/cdrom" is the mountpoint that you wish to use. It SHOULD NOT already exist !
I forgot to say : You need HP-UX 11.0 (or higher) for this and configure the new automounter (autofs) in /etc/rc.coonfig.d/nfsconf (set AUTOFS=1). I don't know if this is possible with HP-UX 10.20
I know there is an issue about unmounting local devices with automounter, but that would be solved in the next NFS patch that is scheduled to be released this month (said HP support).
You can find more information in man automount (1M)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 11:59 PM
09-26-2001 11:59 PM
Re: mt_cd ???
/cdrom -ro,fstype=cdfs :/dev/dsk/c?t?d0
And to activate it, you have to (re)start the automounter: kill the existing one and execute /usr/lib/netsvc/fs/autofs/automountd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2001 01:43 AM
10-01-2001 01:43 AM
Re: mt_cd ???
Be sure to look at the dependencies !