Mount without root permission
6,517
Using udisksctl mount -b /dev/sdXY
we can mount without root permission, just like what gui does.
Related videos on Youtube
Author by
Mohammad Kholghi
Updated on September 18, 2022Comments
-
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 almost 5 yearsCheck that answer, somebody put the mount line in
/etc/fstab
. You JUST can edit it using root permission. @PabloBianchi -
Mohammad Kholghi almost 5 yearsHowever, thanks to you, I answered that question too;) @PabloBianchi
-
Melebius over 4 yearsPossible duplicate of How to auto-mount from command line?.
-
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 over 4 years@ThomasWard Really? It’s mentioned as the first option on meta.stackexchange.com/questions/306326/….
-
Thomas Ward over 4 years@Melebius yes, but that meta post is a feature request. It's not a list of current functionality.
-
Melebius over 4 years@ThomasWard OP says: “Here are the options I have…” And what about this? meta.stackexchange.com/questions/291824/…
-
-
tbrodbeck about 2 yearsIn my case it asks me for a password here as well :/