Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
/ smb-conf-csv Public archive

Command-line tool to read a Samba config file and write some file share details as CSV.

License

Notifications You must be signed in to change notification settings

wmelvin/smb-conf-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smb-conf-csv

smb_conf_csv.py is a command-line tool that reads a Samba configuration file (smb.conf), or a copy of one, and writes some information about shares to CSV format.

This tool serves the author's needs for documenting the shares on a few local file servers with fairly simple configurations. It does not produce a comprehensive listing of available configuration parameters for a file share. Doing so would produce a very wide (and hardly usable) CSV file. At the time of writing, there were over 140 share (S) parameters listed in the manpage for smb.conf.

Command Line Help/Usage

Usage: smb_conf_csv.py  INPUT_FILE  [-o OUTPUT_NAME]

Reads a Samba configuration file (smb.conf) and writes
some information about the shares to CSV format.

INPUT_FILE
                Path to the smb.conf file to be read (Required).

-o OUTPUT_NAME
                Name of the CSV file to be written (Optional).
                The output_name is used to specify the base name.
                A date_time tag, and '.csv' extension are added.
                If no output_name is specified, output is written
                to the console.

About

Command-line tool to read a Samba config file and write some file share details as CSV.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages