Unix Technical Forum

mount cdrom filesystem as non-root user

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 04:04 AM
Tim Burton
 
Posts: n/a
Default mount cdrom filesystem as non-root user

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 04:04 AM
Patrick Begou
 
Posts: n/a
Default Re: mount cdrom filesystem as non-root user

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 04:04 AM
r00t
 
Posts: n/a
Default Re: mount cdrom filesystem as non-root user

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 04:06 AM
Tim Burton
 
Posts: n/a
Default Re: mount cdrom filesystem as non-root user

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 04:06 AM
Ken Bell
 
Posts: n/a
Default Re: mount cdrom filesystem as non-root user

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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com