- 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
Discussions
Discussions
Forums
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
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