systemd-my-smb
v1.2.0
Published
Automates creating mount points, systemd units, and authentication for smb shares
Downloads
4
Maintainers
Readme
systemd-my-smb
Systemd-my-smb is a command line application that will automatically create systemd unit files to mount SMB user share(s). Whether you are new to Linux or wanting to automate mount your shares, systemd-my-smb is here to help you manage your smb systemd unit files.
Installation
$ npm i -g systemd-my-smb
Examples
No credentials
$ systemd-my-smb --smb-host MYSERVER --shares photos,movies,books --enable-units --start-units
Username and Password
$ systemd-my-smb --smb-host MYSERVER --shares photos,movies,books --enable-units --start-units --permissions rw --user myuser --password 0ABadPass!
Credentials File (Recommended)
$ systemd-my-smb --smb-host MYSERVER --shares photos,movies,books --enable-units --start-units --permissions rw --credential-file /home/myuser/.myserver_credentials
Unmount and Remove Shares
$ systemd-my-smb --smb-host MYSERVER --shares photos,movies,books --clean
Options
Development
Running in development mode
To run in development just use npm run dev
and supply your arguments.
$ npm run dev -- --smb-host MYSERVER --shares photos,movies,books
Updating dependencies
Run npm run update-dependencies
which will upgrade all packages in package.json, install, and update package-lock.json.
Publishing Releases
Systemd-my-smb uses release-it
for releasing. Use the following syntax for releases: npm run release major|minor|patch
.
Tests
Where are the tests!? This project was started with the goal of no transpilation while using native module support in Node. Unfortunately, there are only experimental ways to mock these modules. Without proper mocking support, testing is on hold.