You are not logged in.

#1 2022-10-08 10:04:49

Adcock
Member
From: Earth
Registered: 2020-06-14
Posts: 8

fuse2fs : Permission denied.

$ fuse2fs /dev/mapper/rexq-forth /home/bari/HWD/mounts/data/
/dev/mapper/rexq-forth: Permission denied.
Please run e2fsck -fy /dev/mapper/rexq-forth.
$ fuse2fs -o fakeroot /dev/mapper/rexq-forth /home/bari/HWD/mounts/data/
/dev/mapper/rexq-forth: Permission denied.
Please run e2fsck -fy /dev/mapper/rexq-forth.

Note : The fs is mountable using mount as root.

This is what I got when trying to mount the said,
fs using fuse as a non-root user.
I don't understand what to do to get this to work.
Any help is appreciated.
I tried to read the manpage.
But it has no such information.
Also not much is available through web search.
But if you have any solution please let me know.

I am not sure I have posted on the right forum.
But this topic did not match any other forum imo.

Offline

#2 2022-10-08 11:20:24

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 237

Re: fuse2fs : Permission denied.

fuse2fs need access to /dev/mapper/rexq-forth. What permissions are for it?

# stat /dev/mapper/rexq-forth

I suppose your user has no permissions to access block device.

Offline

#3 2022-10-08 12:16:53

Adcock
Member
From: Earth
Registered: 2020-06-14
Posts: 8

Re: fuse2fs : Permission denied.

$ stat /dev/mapper/rexq-forth
  File: /dev/mapper/rexq-forth -> ../dm-3
  Size: 7         	Blocks: 0          IO Block: 4096   symbolic link
Device: 0,5	Inode: 993         Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-10-08 15:42:39.215956924 +0600
Modify: 2022-10-08 15:42:33.855893489 +0600
Change: 2022-10-08 15:42:33.855893489 +0600
 Birth: -

I think it has all the permissions.

Offline

#4 2022-10-08 12:45:11

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 237

Re: fuse2fs : Permission denied.

It is symbolic link.

# stat -L /dev/mapper/rexq-forth

or

# stat /dev/dm-3

By default users have no access to block devices.

Offline

#5 2022-10-08 12:53:54

Adcock
Member
From: Earth
Registered: 2020-06-14
Posts: 8

Re: fuse2fs : Permission denied.

$ stat /dev/dm-3
  File: /dev/dm-3
  Size: 0         	Blocks: 0          IO Block: 4096   block special file
Device: 0,5	Inode: 367         Links: 1     Device type: 254,3
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (  995/    disk)
Access: 2022-10-08 15:42:33.865893606 +0600
Modify: 2022-10-08 15:42:33.855893489 +0600
Change: 2022-10-08 15:42:33.855893489 +0600
 Birth: -

Okay. What is the right course of action?
Are changes to those file permissions persistent?

Last edited by Adcock (2022-10-08 12:54:31)

Offline

#6 2022-10-08 13:04:14

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 237

Re: fuse2fs : Permission denied.

Adcock wrote:

Are changes to those file permissions persistent?

No, they aren't. You can setup udev to configure permissions persistently: https://wiki.archlinux.org/title/udev#A … se_devices

Offline

Board footer

Powered by FluxBB