Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
User Mounting Permission
Results 1 to 8 of 8

Thread: User Mounting Permission

  1. #1

    User Mounting Permission

    Hi,

    I am having trouble with allowing users to mount drives e.g floppy, CD, and digital camera etc.

    In /etc/fstab I have set the permission field to "user"
    I have given universal R/W permission on the mount points and also the /dev/ files.

    Still it doesn't work - users don't have permission to mount.

    On a previous installation of RH9 (before my HDD died), I had it all working fine after typing a one line command that I found using a google search - only now I can't find it again :'(

    So can anyone help me to give permission to users to mount drives?

    Regards,

    Dwain.

  2. #2

    Re:User Mounting Permission

    hummss.
    here is what i have in my fstab -it specifies owner rather than user. i know i can do all that stff as a user.

    Code:
    /dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
    /dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0

  3. #3

    Re:User Mounting Permission

    gid="user group id",mode=770
    or uid="specific user's id"
    this all goes in /etc/fstab

  4. #4

    Re:User Mounting Permission

    ah good call countach44 - that would be formated something like this:

    Code:
    /dev/cdrom /mnt/cdrom iso9660 defaults,user,ro,umask=002,gid=100 0 0
    where gid = group ID number, typically 100 for the group users on rh systems.

  5. #5

    Re:User Mounting Permission

    I modified fstab to read the following

    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/hda3 swap swap defaults 0 0
    /dev/fd0 /mnt/floppy auto noauto,user,kudzu 0 0

    /dev/sda1/mnt/cameraautonoauto,user,rw,unmask=002,gid=100 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 noauto,user,kudzu,ro 0 0
    /dev/hdb2/mnt/drive2auto noauto,user,rw,unmask=002,gid=100 0 0

    This has made no difference for the camera and the second hard drive that I have altered above I am afraid - it still requires root.

  6. #6

    Re:User Mounting Permission

    hello,
    change the unmask to umask

  7. #7

    Re:User Mounting Permission

    also, umount and mount it again

  8. #8

    Re:User Mounting Permission

    OK - edited fstab to read as follows

    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/hda3 swap swap defaults 0 0
    /dev/fd0 /mnt/floppy auto noauto,user,kudzu 0 0

    /dev/sda1/mnt/cameravfatnoauto,user,rw,umask=002,gid=100 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 noauto,user,kudzu,ro 0 0
    /dev/hdb2/mnt/drive2fs2 noauto,user,rw,umask=002,gid=100 0 0


    then unmounted drive2 as root, changed to user (notroot hehehe) and the errors were same same.

    Is it significant that I get two different errors - camera returns an error requiring me to be SU, and drive2 erturns an error requiring me to be root.

    Regards,

    Dwain.

Similar Threads

  1. Replies: 2
    Last Post: 09-02-2010, 03:14 AM
  2. chown <ldap user> <dir>, permission denied
    By djekels in forum Linux - General Topics
    Replies: 1
    Last Post: 03-15-2006, 11:30 PM
  3. mounting a user accesible partition
    By N0thing in forum General Chat
    Replies: 13
    Last Post: 03-19-2005, 10:26 AM
  4. define a user with less permission
    By yazdan in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 07-19-2004, 09:38 AM
  5. User mounting iso file, smb shares
    By CP in forum Linux - General Topics
    Replies: 5
    Last Post: 06-01-2003, 07:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •