Mount without root permission

6,517

Using udisksctl mount -b /dev/sdXY we can mount without root permission, just like what gui does.

Share:
6,517

Related videos on Youtube

Mohammad Kholghi
Author by

Mohammad Kholghi

Updated on September 18, 2022

Comments

  • Mohammad Kholghi
    Mohammad Kholghi over 1 year

    I use Xubuntu. When I plug in my USB, I can simply mount and open it by clicking on its icon, but when I want to mount it from the command line, it needs root permission.

    Why? And how can I mount my USB (the command line) without root permission? I can't put it in /etc/fstab, because it needs root permission.

    Note: I don't want to mount an ISO file. My question was marked as duplicated but the target question had no valid answer. If you want to flag as duplicated, please first check the target question, and then add the duplicated flag. Thanks.

    • Mohammad Kholghi
      Mohammad Kholghi almost 5 years
      Check that answer, somebody put the mount line in /etc/fstab. You JUST can edit it using root permission. @PabloBianchi
    • Mohammad Kholghi
      Mohammad Kholghi almost 5 years
      However, thanks to you, I answered that question too;) @PabloBianchi
    • Melebius
      Melebius over 4 years
      Possible duplicate of How to auto-mount from command line?.
    • Thomas Ward
      Thomas Ward over 4 years
      @Melebius FYI We are unable to edit the "duplicate target" list - those are handled automatically by the system based on flags. Your comment here alone to add the link to the other potential duplicate was sufficient enough,
    • Melebius
      Melebius over 4 years
      @ThomasWard Really? It’s mentioned as the first option on meta.stackexchange.com/questions/306326/….
    • Thomas Ward
      Thomas Ward over 4 years
      @Melebius yes, but that meta post is a feature request. It's not a list of current functionality.
    • Melebius
      Melebius over 4 years
      @ThomasWard OP says: “Here are the options I have…” And what about this? meta.stackexchange.com/questions/291824/…
  • tbrodbeck
    tbrodbeck about 2 years
    In my case it asks me for a password here as well :/