mount with normal user.....?

Discussion in 'Open Source' started by mediator, Apr 16, 2006.

Thread Status:
Not open for further replies.
  1. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    Hi
    I wanna know how to mount the filesystems,usb,cdrom etc with normal user ?
     
  2. praka123

    praka123 left this forum longback

    Joined:
    Sep 7, 2005
    Messages:
    7,513
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    -
    you should add ur local user's secondary groups as cdrom,games,usb etc
     
  3. eddie

    eddie El mooooo

    Joined:
    Jan 26, 2006
    Messages:
    1,414
    Likes Received:
    14
    Trophy Points:
    0
    Location:
    India
    This will not help. Adding those additional groups just allows you to be able to use all those things i.e. read cdrom, play games, use USB etc.

    To mount drives as normal user you need to put the option "user" in the related line of your /etc/fstab. For example: If I want to allow normal users to mount/unmount my cdrw drive then I have the following line in my /etc/fstab
    Code:
    /dev/hda                /mnt/cdrom       iso9660       noauto,rw,user           0   0
    For more info, you should read "man 8 mount" and "man 5 fstab"
     
  4. Dusvidania

    Dusvidania New Member

    Joined:
    Apr 14, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Mohali
    or just set the UGID permission to the MOUNT command as a root user. (but be aware , in providing the mount facility to normal user........can be dangerous) [use man pages for further help]

    man chmod

    or else use the SUDO utility (see man pages)

    man sudo
     
  5. mehulved

    mehulved 18 Till I Die............

    Joined:
    Jul 15, 2004
    Messages:
    5,790
    Likes Received:
    44
    Trophy Points:
    0
    Location:
    India, Mumbai, Marine Lines
    Even adding umask=000 to that deviice's line in fstab helps. Though I don't have much idea how it works.
     
  6. OP
    OP
    mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    @eddie......yea that worked......thanx dood!
    @dusvidani.....i was thinking of doing that what u said.......but wanted a solution from fstab only........neway thanx cautioning me.
     
  7. eddie

    eddie El mooooo

    Joined:
    Jan 26, 2006
    Messages:
    1,414
    Likes Received:
    14
    Trophy Points:
    0
    Location:
    India
    It gives read/write/exec rights to all users on the partition.
     
  8. vignesh

    vignesh New Member

    Joined:
    Jul 20, 2004
    Messages:
    1,658
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    Just add the word users along with default...
     
Thread Status:
Not open for further replies.

Share This Page