gibeomii-kim / cifsd-tools

cifssrv tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

________________________
BUILDING SMBD TOOLS
________________________

Install preprequisite packages:
	For Ubuntu:
	sudo apt-get install autoconf libtool pkg-config libnl-3-dev \
	libnl-genl-3-dev

	For Fedora, RHEL:
	sudo yum install autoconf automake libtool glib2-devl libnl3-devl

	For CentOS:
	sudo yum install glib2-devel libnl3-devel

Build steps:
        - cd into the smbd-tools directory
        - ./autogen.sh
        - ./configure
        - make
        - make install

_____________________
USING SMBD TOOLS
_____________________

Setup steps:
	- install smbd kernel driver
		modprobe smbd
	- create user/password for SMB share
		mkdir /etc/smbd/
		smbuseradd -a <Enter USERNAME for SMB share access>
		Enter password for SMB share access
	- create /etc/smbd/smb.conf file, add SMB share in smb.conf file
		Refer smb.conf.example
	- start smbd user space daemon
		usmbd
	- access share from Windows or Linux using CIFS

--------------------
ADMIN TOOLS
--------------------

- smbuseradd
	Adds, updates or removes (-a/-u/-d) a user from smbd pwd file.

- smbshareadd
	Adds, updates or removes (-a/-u/-d) a net share from smb.conf file.

Usage example:

Creating a new share:

smbshareadd -a files -o "\
		     path=/home/users/files \
		     comment=exported files \
		     writeable=yes \
		     read only = no \
		     "

Note that share options (-o) must always be enquoted ("...").

smbshareadd tool does not modify [global] smb.conf section; only net
share configs are supported at the moment.

About

cifssrv tools

License:GNU General Public License v2.0


Languages

Language:C 98.3%Language:M4 1.0%Language:Makefile 0.6%Language:Shell 0.2%