Skip to content

m7a/lp-vifm-ext

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
section x-masysma-name title date lang author keywords x-masysma-version x-masysma-repository x-masysma-website x-masysma-owned x-masysma-copyright
32
vifm-ext
MDVL VIFM Extension Scripts
2020/09/02 02:33:48
en-US
Linux-Fan, Ma_Sys.ma (Ma_Sys.ma@web.de)
package
mdvl
vifm
script
shell
1.0.0
1
Copyright (c) 2020 Ma_Sys.ma. For further info send an e-mail to Ma_Sys.ma@web.de.

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.

About

MDVL VIFM Mount Extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages