<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mount: only root can do that - why ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467753#M61704</link>
    <description>All of the above gurus are correct about your question.&lt;BR /&gt;What i just have to say is, This is security feature designed on linux.&lt;BR /&gt;In Simple,&lt;BR /&gt;No one else would be copy out or in large chunk of data with out administrators help.&lt;BR /&gt;&lt;BR /&gt;But if as correctly said setting up sudo or else udev also will help you to override this&lt;BR /&gt;&lt;BR /&gt;Good Luck...!</description>
    <pubDate>Wed, 29 Jul 2009 02:21:34 GMT</pubDate>
    <dc:creator>Nuwan Alwis</dc:creator>
    <dc:date>2009-07-29T02:21:34Z</dc:date>
    <item>
      <title>mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467747#M61698</link>
      <description># ls -l /bin/mount&lt;BR /&gt;-rwsr-xr-x 1 root root 330028 2008-04-22 05:56 /bin/mount&lt;BR /&gt;&lt;BR /&gt;sticky bit is set on 'mount', and others has 'r-x' permission on 'mount' command.. i.e anyone can run 'mount' with root privilidges  &lt;BR /&gt;&lt;BR /&gt;but&lt;BR /&gt;# su - test&lt;BR /&gt;test@ins01:~&amp;gt; mount /dev/sda7 /mnt&lt;BR /&gt;mount: only root can do that&lt;BR /&gt;&lt;BR /&gt;permission wise /bin/mount and /usr/bin/passwd are equivalent&lt;BR /&gt;-rwsr-xr-x 1 root shadow 73300 2007-05-04 17:30 /usr/bin/passwd&lt;BR /&gt;and any user can run 'passwd' command, so why not 'mount' ?</description>
      <pubDate>Tue, 28 Jul 2009 05:35:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467747#M61698</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-07-28T05:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467748#M61699</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;You need to allow normal users to mount it in fstab file - see man fstab.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;           Goran</description>
      <pubDate>Tue, 28 Jul 2009 06:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467748#M61699</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2009-07-28T06:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467749#M61700</link>
      <description>Any user can run the "passwd" command too, but a non-root user can only change his/her own passwords, not anyone else's.&lt;BR /&gt;&lt;BR /&gt;A non-root user running a "setuid root" program has root privileges, but is otherwise not a true "root user". A program can tell the difference if necessary.&lt;BR /&gt;&lt;BR /&gt;The message "mount: only root can do that" comes from the mount command itself: it allows non-root users to only mount and unmount those filesystems that have the special mount option "user" in the /etc/fstab file. In effect, the non-root users can only run mount operations that have been pre-approved by root.&lt;BR /&gt;&lt;BR /&gt;If root configures the /etc/fstab to include the line:&lt;BR /&gt;&lt;BR /&gt;/dev/sda7 /mnt ext3 user,noauto 0 0&lt;BR /&gt;&lt;BR /&gt;then a non-root user could mount the filesystem with either "mount /dev/sda7" or "mount /mnt".&lt;BR /&gt;&lt;BR /&gt;The full form "mount /dev/sda7 /mnt" will still be restricted to root user only, because it implies overriding any mount options specified in the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 28 Jul 2009 06:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467749#M61700</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-07-28T06:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467750#M61701</link>
      <description>Thanks  Goran Koruga  for help&lt;BR /&gt;&lt;BR /&gt;and Thanks for very nice help and explanation Dear Mr  Matti Kurkela.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Tue, 28 Jul 2009 08:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467750#M61701</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-07-28T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467751#M61702</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Maaz, you can if you choose give sudo permissions to let people run mount command.&lt;BR /&gt;&lt;BR /&gt;passwd has no choice to to let users run it because in theory the user needs to be able to update authentication information.&lt;BR /&gt;&lt;BR /&gt;root only running mounts is in theory because the root user should control who does the mounts, what is mounted and what the name of the mount points are.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 28 Jul 2009 11:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467751#M61702</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-28T11:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467752#M61703</link>
      <description>I agree with SEP that sudo is the recommended solution if a non-root user must be able to mount "anything anywhere".&lt;BR /&gt;&lt;BR /&gt;But if the requirement is to mount a USB storage device into a convenient location, most modern Linux distributions have specific tools for that. For example "pmount" (policy mount) allows ordinary users to mount removable media (USB sticks and disks, Firewire disks, MMC cards) to /media/DEVICENAME or /media/VOLUMELABEL with no specific configuration in advance. In Debian, the use of pmount is restricted to the members of "plugdev" group.&lt;BR /&gt;&lt;BR /&gt;See what your Linux distribution has to offer, read its documentation, then use it if it's useful.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 28 Jul 2009 11:47:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467752#M61703</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-07-28T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467753#M61704</link>
      <description>All of the above gurus are correct about your question.&lt;BR /&gt;What i just have to say is, This is security feature designed on linux.&lt;BR /&gt;In Simple,&lt;BR /&gt;No one else would be copy out or in large chunk of data with out administrators help.&lt;BR /&gt;&lt;BR /&gt;But if as correctly said setting up sudo or else udev also will help you to override this&lt;BR /&gt;&lt;BR /&gt;Good Luck...!</description>
      <pubDate>Wed, 29 Jul 2009 02:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467753#M61704</guid>
      <dc:creator>Nuwan Alwis</dc:creator>
      <dc:date>2009-07-29T02:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467754#M61705</link>
      <description>The really serious security aspect of mounting is that a user with the ability to mount with arbitrary arguments can escalate to full root privileges.  The ability to mount a file system over a trusted path or mount a filesystem containing setuid executables or device files is an easy path to root privilege.  The mount options in fstab can be set to use nosuid and nodev and a specific mount point.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jul 2009 17:05:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467754#M61705</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2009-07-30T17:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467755#M61706</link>
      <description>i'm with all the others who say that regular users should not mount filesystems (of any type) using mount. this is a security feature and best left as it is.&lt;BR /&gt;&lt;BR /&gt;if you need this, which is strange, because why would fs' need to be mounted/unmounted by users? you should rethink your procedures/setup/whatever to avoid this dependency.</description>
      <pubDate>Mon, 03 Aug 2009 08:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467755#M61706</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2009-08-03T08:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: mount: only root can do that - why ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467756#M61707</link>
      <description>Yes, please do not offer sudo privs to all users on the system as they would be able to mount random disks at will - but if you want specific media to be mounted by user like cdrom; just add 'user, auto' in /etc/fstab for these entries.</description>
      <pubDate>Wed, 12 Aug 2009 02:35:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-only-root-can-do-that-why/m-p/4467756#M61707</guid>
      <dc:creator>Sajith741</dc:creator>
      <dc:date>2009-08-12T02:35:24Z</dc:date>
    </item>
  </channel>
</rss>

