This is a discussion on mount cdrom filesystem as non-root user within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, Can anyone tell me how to permit a non-root user to use the mount command to mount a ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Tim Burton wrote: > Hi, > > Can anyone tell me how to permit a non-root user to use the mount command to > mount a cd in AIX 5.1 ? > > TIA > > Tim Burton > > I'm using automount for this purpose (and for NFS too). /etc/auto_master contains: /tmp_mnt /var/yp/tmp_mnt.mount The indirect automount table /var/yp/tmp_mnt.mount contains: cdrom -ro,fstype=cdrfs :/dev/cd0 So going in /tmp_mnt/cdrom mounts automatically the cdrom. It is umounted when the user leave the /mn/cdrom directory after a timeout. I've a link from /cdrom to /tmp_mnt/cdrom/. and users only knows /cdrom on the host (they run "cd /cdrom" to access the cdrom). Patrick |
| |||
| Hi Tim. Try 'sudo'. Available as a precompiled binary from http://www.bullfreeware.com Man pages to explain how it works (first found on Google): http://www-it.desy.de/cgi-bin/man-cgi?sudo Hope this helps. Tim Burton wrote: > Hi, > > Can anyone tell me how to permit a non-root user to use the mount command to > mount a cd in AIX 5.1 ? > > TIA > > Tim Burton > > |
| |||
| Patrick Begou wrote: > Tim Burton wrote: > >> Hi, >> >> Can anyone tell me how to permit a non-root user to use the mount >> command to mount a cd in AIX 5.1 ? >> >> TIA >> >> Tim Burton >> >> > > I'm using automount for this purpose (and for NFS too). > > /etc/auto_master contains: > > /tmp_mnt /var/yp/tmp_mnt.mount > > The indirect automount table /var/yp/tmp_mnt.mount contains: > > cdrom -ro,fstype=cdrfs :/dev/cd0 > > So going in /tmp_mnt/cdrom mounts automatically the cdrom. It is > umounted when the user leave the /mn/cdrom directory after a timeout. > > I've a link from /cdrom to /tmp_mnt/cdrom/. and users only knows /cdrom > on the host (they run "cd /cdrom" to access the cdrom). > > Patrick Patrick, I hadn't thought to go down that route, but, that does just what I want. Many thanks. Tim |
| ||||
| In article <cgajuo$ntd$1$830fa795@news.demon.co.uk>, Patrick Begou wrote: > > cdrom -ro,fstype=cdrfs :/dev/cd0 I'd add the "nodev" and "nosuid" options to this if you're allowing non-root users to mount CDs, or they will soon enough be root users :-) -- Ken Bell :: kenbell@panix.com :: (212) 475-4976 (voice) |