Skip to content

Bash script for easy control and access to Samba disk resources

License

Notifications You must be signed in to change notification settings

martin-rizzo/SambaLinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Samba Linker

Bash script for easy control and access to Samba disk resources.

Platform Language License Last

smblinker

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.

Usage

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.

Examples

Listing available 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.

Mounting a disk

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.

Unmounting a disk

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.

Requirements

This script requires the system to have the Samba client (smbclient) installed in order to access the disks on the server.

Contributions

Feel free to contribute to this project. If you have any ideas or suggestions, open an issue or submit a pull request.

About

Bash script for easy control and access to Samba disk resources

Resources

License

Stars

Watchers

Forks

Languages