Skip to content

Is it possible to install Mountpoint for Amazon S3 without sudo privileges?

0

I tried with the following steps from the Mountpoint installation guide

cd ~
wget https://s3.amazonaws.com/mountpoint-s3-release/latest/arm64/mount-s3.tar.gz
mkdir -p ./mountpoint-s3
tar -C ./mountpoint-s3 -xvf ./mount-s3.tar.gz 
export PATH=$PATH:$HOME/mountpoint-s3/bin  # and added the same to ~/.bashrc
mkdir ./mnt/

However, when running the following command:

mount-s3 my-s3-bucket-name ./mnt

I ran into the following error.

fuse: failed to exec fusermount: No such file or directory
Error: Failed to create FUSE session

Caused by:
    Operation not permitted (os error 1)
Error: Failed to create mount process
AWS
asked a year ago970 views
2 Answers
1

Check fusermount Installation:

These distributions typically use the fuse package which includes fusermount. Check if it's installed:

dpkg -l fuse

If not installed, install it:

sudo apt install fuse

Verify PATH:

export PATH=$PATH:$HOME/mountpoint-s3/bin

Check Permissions:

  • In rare cases, the fusermount executable might have incorrect permissions. Try:
sudo chmod +x /usr/bin/fusermount  # Replace path if different on your system

Re-attempt Mount:

  • After following any of these steps, try mounting your S3 bucket again using:
mount-s3 my-s3-bucket-name ./mnt
EXPERT
answered a year ago
EXPERT
reviewed a year ago
  • I'm on an RPM-based system. So I get the error: -bash: dpkg: command not found. Also, I will need sudo privileges to run something like sudo apt install fuse (or sudo dnf install fuse)

  • You're right, dpkg is a Debian/Ubuntu package manager, and won't be found on RPM-based systems. Here's how to troubleshoot the fusermount issue on your RPM system:

    1. Install FUSE libraries:

    Since fusermount is part of the FUSE libraries, install them using your package manager:

    Bash sudo yum install fuse fuse-devel # For Fedora/CentOS/RHEL

    OR

    sudo zypper install fuse fuse-devel # For OpenSUSE/SUSE

0

You do need to have sudo access if you would like to install a package on the machine, and you would also typically need to have sudo permissions to be able to mount a file-system, as allowing any user to mount a file-system is a great way to allow folks to do nasty things, like mounting a file-system in /etc that contains the evil persons own copy of /etc/shadow or /etc/sudoers and this will allow them to either get root, or get sudo access for themselves.

So a direct answer to your question - you would usually need sudo to be able to install mountpoint for s3.

AWS
EXPERT
answered a year ago
EXPERT
reviewed a year ago
  • it seems like if the system already has fuse installed, I do not need sudo to run mount-s3 example-bucket $HOME/mnt --allow-overwrite --allow-delete. So it looks like the answer is that sudo is generally required, but there's an exception for systems that already have fuse installed.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.