Bash script for easy control and access to Samba disk resources.
The "smblinker" script is responsible for accessing disks on a Samba file server. It has three possible subcommands that must be specified as the first parameter.
smblinker <subcommand> [<argument>]
The subcommands are:
list
: Lists the disks on the server that can be accessed by the user.mount <disk>
: Mounts one of those disks.umount <disk>
: Unmounts any of those disks.
To list the available disks on the server, use the list
subcommand:
smblinker list
This command will display a list of disks that the user can access.
To mount a disk on the server, use the mount
subcommand and provide the disk name as an argument:
smblinker mount disk1
This command will mount the disk named "disk1" to a local directory.
To unmount a disk on the server, use the umount
subcommand and provide the disk name as an argument:
smblinker umount disk1
This command will unmount the disk named "disk1" that is mounted in the local directory.
This script requires the system to have the Samba client (smbclient
) installed in order to access the disks on the server.
Feel free to contribute to this project. If you have any ideas or suggestions, open an issue or submit a pull request.