0

I am wondering how to make a filesystem as a non-root user, using GNOME 3 (openSUSE Leap 42.3).

~> fallocate -l ### part.bin # Create a sparse file on disk
~> #sudo mkfs -t FSTYPE part.bin # Requires root; how can I do this without root privileges?

I am assuming this is possible because of the implications of an answer regarding accomplishing this formatting in the GUI.

Though sudo can give root privileges to only certain executables, I am looking for a pure non-root solution, requiring no superuser privileges.

palswim
  • 5,167

1 Answers1

0

Though your PATH environment variable may not contain the mkfs or mkfs.* executables, you can still call them as a non-root user.

~> /sbin/mkfs -t FSTYPE part.bin # Does not require root
palswim
  • 5,167