- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: umount cdrom
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
11-22-2005 09:17 PM
11-22-2005 09:17 PM
I am using Linux...
I am not able to unmount /dev/mnt/cdrom by normal user.
I am able to do this by root user.
How can i umount cdrom through normal user.
Thanks,
Yogeshg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 09:22 PM
11-22-2005 09:22 PM
SolutionInstall and configure a tool like sudo for linux.
http://www.linuxhelp.net/guides/sudo/
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 09:25 PM
11-22-2005 09:25 PM
Re: umount cdrom
Make a script like,
#!/bin/ksh
# unmount
sudo umount /dev/mnt/cdrom
#
Give the permission to normal users.
$ unmount
will umount cdrom
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 10:08 PM
11-22-2005 10:08 PM
Re: umount cdrom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 10:25 PM
11-22-2005 10:25 PM
Re: umount cdrom
#!/bin/ksh
#unmount
(
echo "root"
sleep 2
echo "passwd of root account"
sleep 2
echo "umount /dev/mnt/cdrom"
sleep 1
echo "exit 0"
) | telnet localhost
#
Save this file in /usr/bin/ location with 555 permission using bin:bin user:group. setting.
PS: root password will be readable to normal user. You can use expect scripting to make encrypted passwd setting.
Setuping sudo is best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2005 10:32 PM
11-22-2005 10:32 PM
Re: umount cdrom
without sudo maybe you can
test using sticky bit on the
first script that Muthukumar
suggest.
(i don't know if can be hard change)
regards
pg