MDVL VIFM Extension Scripts

Description

This package provides scripts to extend the capabilities of the VIFM file manager (or any configurable console-based file manager) by a mounting faciltiy. It is intended to be used togehter with the configuration provided in package mdvl-conf-cli, see conf-cli(32).

WARNING: Sudo Configuration Included

This package includes a sudoers configuration allowing user linux-fan to run the ma_mount command which makes the mount command available to a user. Beware that this reduces system security.

Script mavifmext_reduced.sh

This script creates a dialog-based selection menu of devices available for mounting. It filters out any device that is either in /proc/mdstat or already mounted as a safety measure against accidentally mounting a system volume.

Screenshot of the mounting dialog

After obtaining the device selection from the user, the script invokes ma_mount for the actual mount process.

Script ma_mount

Most Desktop Environments provide convenient means to mount any device. Unfortunately, when using a window manager only, this feature is sometimes unreliable due to missing session or background daemons. In the past, release updates repreatedly “destroyed” what was before a working mount command to be used by regular users.

Due to that situation, script ma_mount was created to solve the issue by the “sledgehammer approach” of allowing users to mount devices with sudo.

Instead of giving users access to mount via sudo directly, the script has some additional sanity checks to avoid malicious bind mounts that could effectively give users root access. Note that these measures are most likely insufficient against a sophisticated adversary who analyzes the script thoroughly.

Note: The documentation here is incomplete on purpose. Users are highly encouraged to find an alternative solution for their needs.


Ma_Sys.ma Website 5 (1.0.2) – no Flash, no JavaScript, no Webfont, no Copy Protection, no Mobile First. No bullshit. No GUI needed. Works with any browser.

Created: 2020/09/02 02:33:48 | Revised: 2022/09/18 21:18:50 | Tags: package, mdvl, vifm, script, shell | Version: 1.0.0 | SRC (Pandoc MD) | GPL

Copyright (c) 2020 Ma_Sys.ma. For further info send an e-mail to Ma_Sys.ma@web.de.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.