LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   locked mount points (https://www.linuxquestions.org/questions/linux-general-1/locked-mount-points-57841/)

PrimaryDataLoop 05-02-2003 12:08 PM

locked mount points
 
Hello. I installed Slacwakre 9. Runs sweet yet my mount points..

/mnt/floppy
/mnt/cdrom

can only be accessed by ROOT. how do I make it so normal users can use them?




My best guess is chmod.

Any thoughts?

markus1982 05-02-2003 12:14 PM

Wrong though ... user=XXX,group=XXX, etc. man mount for more details!

whansard 05-02-2003 01:36 PM

one way


/dev/cdrom /mnt/cdrom iso9660 user,exec,nodev,suid,rw,noauto,umask=0 0 0

PrimaryDataLoop 05-02-2003 11:00 PM

What?

MasterC 05-02-2003 11:03 PM

man mount, really, man is your friend (well except your enemies :D )

whansard, is that not defaults values?

Anyway, man mount will describe your options to you. To mount as a user you will need the "user" or "users" depending on your wants/needs.

man mount, man mount, and in case you didn't see that, I meant man mount ;)

If you don't have man pages installed:
http://man.linuxquestions.org/index....ction=0&type=2

:D

Cool

MasterC 05-02-2003 11:08 PM

And I'm bored, so here's the exerpt:
Code:

        async  All I/O to the file system  should  be  done
                    asynchronously.

              atime  Update  inode  access  time for each access.
                    This is the default.

              auto  Can be mounted with the -a option.

              defaults
                    Use default options: rw,  suid,  dev,  exec,
                    auto, nouser, and async.

              dev    Interpret character or block special devices
                    on the file system.

              exec  Permit execution of binaries.

              noatime
                    Do not update inode  access  times  on  this
                    file  system  (e.g, for faster access on the
                    news spool to speed up news servers).

              noauto Can only be mounted explicitly (i.e., the -a
                    option  will not cause the file system to be
                    mounted).

              nodev  Do not interpret character or block  special
                    devices on the file system.

              noexec Do  not  allow  execution of any binaries on
                    the mounted file system.  This option  might
                    be useful for a server that has file systems
                    containing binaries for architectures  other
                    than its own.

            nosuid Do  not  allow  set-user-identifier  or set-
                    group-identifier bits to take effect.  (This
                    seems  safe, but is in fact rather unsafe if
                    you have suidperl(1) installed.)

              nouser Forbid an ordinary (i.e., non-root) user  to
                    mount the file system.  This is the default.

              remount
                    Attempt to remount an  already-mounted  file
                    system.  This is commonly used to change the
                    mount flags for a file system, especially to
                    make  a  readonly  file system writeable. It
                    does not change device or mount point.

              ro    Mount the file system read-only.

              rw    Mount the file system read-write.

              suid  Allow set-user-identifier or set-group-iden-
                    tifier bits to take effect.

              sync  All  I/O  to  the file system should be done
                    synchronously.

              user  Allow an ordinary user  to  mount  the  file
                    system.  The  name  of the mounting user is
                    written to mtab so that he can  unmount  the
                    file  system again.  This option implies the
                    options noexec, nosuid,  and  nodev  (unless
                    overridden  by subsequent options, as in the
                    option line user,exec,dev,suid).

              users  Allow every user to mount  and  unmount  the
                    file  system.    This  option  implies  the
                    options noexec, nosuid,  and  nodev  (unless
                    overridden  by subsequent options, as in the
                    option line users,exec,dev,suid).

Straight from my "man mount" page ;)

So it looks like you'll want:
noauto,users,ro
in your options section (here's my entry for my cdrom):
Code:

/dev/cdrom      /mnt/cdrom      iso9660    noauto,users,ro          0  0
Cool

whansard 05-03-2003 04:46 PM

if you want anybody to be able to mount or umount the
drive use umask=000
if you want ot use user than the user who mounts is
the one who can umount.
when you use the umask=000, the users can still only
mount or umount the drive by accessing the mount point
referenced in fstab.
so if /etc/fstab lists the mount point of /dev/cdrom as
/mnt/cdrom then users should use
mount /mnt/cdrom
as the mount command

i'm going to guess by the "what" reply that you mean
you don't know we're talking about entries in the
file /etc/fstab, which you edit with a text editor.

PrimaryDataLoop 05-05-2003 02:56 PM

I new it was FSTAB I coulda SWORE it was FSTAB,you bastard.

MasterC 05-05-2003 07:36 PM

So did we.. :D

So I take it you got it working?

Cool

PrimaryDataLoop 05-06-2003 12:11 PM

Now ON TO SAMBA!


All times are GMT -5. The time now is 01:21 AM.