This shows you the differences between two versions of the page.
samba [2015/05/31 02:38] deHakkelaar created |
samba [2016/12/21 18:44] (current) deHakkelaar |
||
---|---|---|---|
Line 3: | Line 3: | ||
From the official Samba wiki: | From the official Samba wiki: | ||
"Samba is an Open Source / Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems". | "Samba is an Open Source / Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems". | ||
- | Samba on XBian is installed and activated already out of the box. | ||
- | You can activate or deactivate Samba using "xbian-config" on the BASH command line shell via SSH(preferred) or consol: | + | Samba on XBian is installed and activated already out of the box. |
+ | You can activate or deactivate Samba using "xbian-config" on the BASH command line shell via SSH(preferred) or consol:\\ | ||
xbian-config --> Services --> samba | xbian-config --> Services --> samba | ||
Line 28: | Line 28: | ||
To access these shares from Windows, enter below UNC in explorer: | To access these shares from Windows, enter below UNC in explorer: | ||
<code> | <code> | ||
- | "\\XBIAN_IP_ADDRESS\" | + | \\XBIAN_IP_ADDRESS\ |
</code> | </code> | ||
Line 49: | Line 49: | ||
Remember, they get started again (with new settings this time) by the inetd daemon as soon as a new client tries to connect. | Remember, they get started again (with new settings this time) by the inetd daemon as soon as a new client tries to connect. | ||
- | Below some useful BASH commands when connected via SSH: | + | Below some useful BASH commands: |
<code> | <code> | ||
# List block devices like the SD card or USB hard disk drives: | # List block devices like the SD card or USB hard disk drives: | ||
Line 62: | Line 62: | ||
# Monitor number of active Samba daemons (CTRL-c to exit): | # Monitor number of active Samba daemons (CTRL-c to exit): | ||
- | sudo watch 'ps -e | grep smbd' | + | sudo watch "ps -e | grep 'PID\|smbd'" |
# Monitor network connections on TCP ports 139 and 445 used by Samba (CTRL-c to exit): | # Monitor network connections on TCP ports 139 and 445 used by Samba (CTRL-c to exit): | ||
- | sudo watch "netstat -natp | grep ':139 \|:445 '" | + | sudo watch "netstat -natp | grep 'Proto\|:139 \|:445 '" |
# Create a new Samba user/pass besides the 'guest' user. | # Create a new Samba user/pass besides the 'guest' user. | ||
Line 71: | Line 71: | ||
# use "su -" command to become root afterwards: | # use "su -" command to become root afterwards: | ||
smbpasswd –a <SAMBA_USERNAME> | smbpasswd –a <SAMBA_USERNAME> | ||
+ | |||
+ | # Syntax for 'valid users =' directive in 'shares.conf' can be found here: | ||
+ | # https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#VALIDUSERS | ||
+ | man -P "less -p '^ valid users '" smb.conf | ||
# Show global Samba configuration settings: | # Show global Samba configuration settings: |