This shows you the differences between two versions of the page.
|
samba [2015/06/02 01:24] deHakkelaar |
samba [2016/12/21 18:44] (current) deHakkelaar |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Samba on XBian is installed and activated already out of the box. | 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: | + | 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 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 72: | Line 72: | ||
| smbpasswd –a <SAMBA_USERNAME> | smbpasswd –a <SAMBA_USERNAME> | ||
| - | # Syntax for "valid users =" directive in 'shares.conf' can be found here: | + | # 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 | # https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#VALIDUSERS | ||
| - | man --pager="less -p ' valid users '" smb.conf | + | man -P "less -p '^ valid users '" smb.conf |
| # Show global Samba configuration settings: | # Show global Samba configuration settings: | ||