<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mt_cd ??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585279#M856776</link>
    <description>Hi, tarek&lt;BR /&gt;your user might have wanted a script to mount the cd instead of issuing command. &lt;BR /&gt;put the CD mounting command in a file and add in PATH.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 26 Sep 2001 14:37:36 GMT</pubDate>
    <dc:creator>Ravi_8</dc:creator>
    <dc:date>2001-09-26T14:37:36Z</dc:date>
    <item>
      <title>mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585272#M856769</link>
      <description>Hi all,&lt;BR /&gt;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...&lt;BR /&gt;any tip??&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Tarek</description>
      <pubDate>Wed, 26 Sep 2001 13:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585272#M856769</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2001-09-26T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585273#M856770</link>
      <description>That is not a valid HP-UX command.  At least not that I know of.&lt;BR /&gt;&lt;BR /&gt;Could they have an alias set up something like&lt;BR /&gt;&lt;BR /&gt;alias mt_cd="mount /dev/dsk/c?t?d? /cdrom"</description>
      <pubDate>Wed, 26 Sep 2001 13:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585273#M856770</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-09-26T13:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585274#M856771</link>
      <description>Hello,&lt;BR /&gt;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.</description>
      <pubDate>Wed, 26 Sep 2001 13:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585274#M856771</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-26T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585275#M856772</link>
      <description>What is it that your user wants to do ?&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Wed, 26 Sep 2001 13:30:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585275#M856772</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-09-26T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585276#M856773</link>
      <description>I think that's it!!&lt;BR /&gt;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.&lt;BR /&gt;How can i configure this auomatically as suggested before with automounter??&lt;BR /&gt;Thanks&lt;BR /&gt;Tarek</description>
      <pubDate>Wed, 26 Sep 2001 13:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585276#M856773</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2001-09-26T13:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585277#M856774</link>
      <description>Hi tarek,&lt;BR /&gt;&lt;BR /&gt;Create a file in /usr/bin with the mt_cd and have this entry in that file&lt;BR /&gt;mount -r /dev/dsk/c?t?d? /cdrom&lt;BR /&gt;&lt;BR /&gt;Here c?t?d? is the device file name for the Cdrom as shown be "ioscan -fnC disk"&lt;BR /&gt;&lt;BR /&gt;Change the permission of the file to 755. your users should now be able to use this command to mount the cdrom.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 14:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585277#M856774</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-09-26T14:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585278#M856775</link>
      <description>Thanks Sanjay for your help, but unfortunately it isn't working. I created the file /usr/bin/mt_cd and i've set the permissions to 755, but while a user execute it, he will have this error:&lt;BR /&gt;mount: must be root to use mount&lt;BR /&gt;any further help?? Thanks very much.&lt;BR /&gt;Tarek</description>
      <pubDate>Wed, 26 Sep 2001 14:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585278#M856775</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2001-09-26T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585279#M856776</link>
      <description>Hi, tarek&lt;BR /&gt;your user might have wanted a script to mount the cd instead of issuing command. &lt;BR /&gt;put the CD mounting command in a file and add in PATH.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 14:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585279#M856776</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-09-26T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585280#M856777</link>
      <description>You could also use sudo to do this.&lt;BR /&gt;&lt;BR /&gt;Sudo allows non-root users to run commands, as set up by you, as root without knowing the root passwd.&lt;BR /&gt;&lt;BR /&gt;You can get sudo here:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Once that is done, you could set up the mt_cd script as something like:&lt;BR /&gt;&lt;BR /&gt;sudo mount /dev/dsk/c?t?d0 /cdrom&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;You should probably also set up a umt_cd script with something like:&lt;BR /&gt;&lt;BR /&gt;sudo umount /cdrom&lt;BR /&gt;&lt;BR /&gt;so that the user can also unmount the cd when they are finished.</description>
      <pubDate>Wed, 26 Sep 2001 14:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585280#M856777</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-09-26T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585281#M856778</link>
      <description>Hi&lt;BR /&gt;here is a link where that talks about the same probem that you are having now. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xca1d8ffa98a2d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xca1d8ffa98a2d5118ff10090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Wed, 26 Sep 2001 14:51:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585281#M856778</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-26T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585282#M856779</link>
      <description>What kind of script?? the /usr/bin/mt_cd is a file that contains this command:&lt;BR /&gt;/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.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 14:55:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585282#M856779</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2001-09-26T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585283#M856780</link>
      <description>I've downloaded and installed sudo.&lt;BR /&gt;Then i created the file /usr/bin/mt_cd with this entry:&lt;BR /&gt;/opt/sudo/bin/sudo /usr/sbin/mount -r /dev/dsk/c1t2d0 /SD_CDROM&lt;BR /&gt;but how coud i configure the /etc/sudoers ??&lt;BR /&gt;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..&lt;BR /&gt;so please help me again...&lt;BR /&gt;thanks.</description>
      <pubDate>Wed, 26 Sep 2001 15:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585283#M856780</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2001-09-26T15:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585284#M856781</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/man/sudo.html" target="_blank"&gt;http://www.courtesan.com/sudo/man/sudo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.nscp.umd.edu/sudo.html" target="_blank"&gt;http://www.nscp.umd.edu/sudo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Sep 2001 17:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585284#M856781</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-26T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585285#M856782</link>
      <description>to get man to work with any new applications you need to edit /etc/MANPATH and add the path to the man pages for your new application.&lt;BR /&gt;&lt;BR /&gt;to be able to search man pages using man -k you need to recreate the index using catman -w</description>
      <pubDate>Wed, 26 Sep 2001 17:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585285#M856782</guid>
      <dc:creator>Edward Alfert_2</dc:creator>
      <dc:date>2001-09-26T17:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585286#M856783</link>
      <description>If you want to give automounter a try :&lt;BR /&gt;- Add line "/- /etc/auto_direct" to file /etc/auto_master.&lt;BR /&gt;- Create file /etc/auto_direct and put the following line in this file : "/cdrom -ro,fstype=cdfs :/dev/dsk/c?t?d0"&lt;BR /&gt;"/cdrom" is the mountpoint that you wish to use. It SHOULD NOT already exist !&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;You can find more information in man automount (1M)</description>
      <pubDate>Thu, 27 Sep 2001 06:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585286#M856783</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-09-27T06:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585287#M856784</link>
      <description>To avoid confusion because of a split line, the line in /etc/auto_direct is :&lt;BR /&gt;/cdrom -ro,fstype=cdfs :/dev/dsk/c?t?d0&lt;BR /&gt;&lt;BR /&gt;And to activate it, you have to (re)start the automounter: kill the existing one and execute /usr/lib/netsvc/fs/autofs/automountd.</description>
      <pubDate>Thu, 27 Sep 2001 06:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585287#M856784</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-09-27T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: mt_cd ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585288#M856785</link>
      <description>The patch needed to use automount for succesfully for local filesystems (CD's) is PHNE_24034.&lt;BR /&gt;Be sure to look at the dependencies !</description>
      <pubDate>Mon, 01 Oct 2001 08:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mt-cd/m-p/2585288#M856785</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-10-01T08:43:16Z</dc:date>
    </item>
  </channel>
</rss>

