Created
March 10, 2016 07:43
-
-
Save kapb14/c5b49272584933f49dc5 to your computer and use it in GitHub Desktop.
THECUS useful commands and binaries locations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /var/log; tail -f log.* samba/samba.{n,s}mbd samba/samba.winbindd | |
| /opt/samba/bin/net | |
| /opt/samba/bin/smbclient | |
| /opt/samba/bin/smbcontrol | |
| /opt/samba/bin/smbmnt | |
| /opt/samba/bin/smbpasswd | |
| /opt/samba/bin/smbstatus | |
| /opt/samba/bin/tdbdump | |
| /opt/samba/bin/tdbtool | |
| /opt/samba/bin/wbinfo | |
| /opt/samba/sbin/nmbd | |
| /opt/samba/sbin/smbd | |
| /opt/samba/sbin/winbindd | |
| /opt/ntp/bin/ntpdate 192.168.0.11 | |
| net validate | |
| net domain List domains/workgroups on network | |
| net session Manage sessions | |
| net share Functions on shares | |
| net ads Run functions using ADS transport | |
| net service List/modify running services | |
| net lookup Look up host names/IP addresses | |
| net join Join a domain/AD | |
| net dom Join/unjoin (remote) machines to/from a domain/AD | |
| net status Display server status | |
| net conf Manage Samba registry based configuration | |
| net ads info Display details on remote ADS server | |
| net ads join Join the local machine to ADS realm | |
| net ads testjoin Validate machine account | |
| net ads leave Remove the local machine from ADS | |
| net ads status Display machine account details | |
| net ads user List/modify users | |
| net ads group List/modify groups | |
| net ads dns Issue dynamic DNS update | |
| net ads password Change user passwords | |
| net ads changetrustpw Change trust account password | |
| net ads printer List/modify printer entries | |
| net ads search Issue LDAP search using filter | |
| net ads dn Issue LDAP search by DN | |
| net ads sid Issue LDAP search by SID | |
| net ads workgroup Display workgroup name | |
| net ads lookup Perfom CLDAP query on DC | |
| net ads keytab Manage local keytab file | |
| net ads gpo Manage group policy objects | |
| net ads kerberos Manage kerberos keytab | |
| net ads info | |
| # net ads info | |
| LDAP server: 192.168.0.243 | |
| LDAP server name: ololo.ADV.local | |
| Realm: ADV.LOCAL | |
| Bind Path: dc=ADV,dc=LOCAL | |
| LDAP port: 389 | |
| Server time: Thu, 03 Mar 2016 17:21:22 UTC | |
| KDC server: 192.168.0.243 | |
| Server time offset: 2 | |
| ############################################################################################################### | |
| # http://thecususergroup.proboards.com/thread/2528?page=1 | |
| restart-samba(){ | |
| echo -e "\n\nrestart samba without rebuilding smb.conf\n\n" | |
| echo -e "\tstop samba\n" | |
| kill -15 `ps | grep smbd | awk '{print $1}'` | |
| kill -15 `ps | grep nmbd | awk '{print $1}'` | |
| kill -15 `ps | grep winbindbd | awk '{print $1}'` | |
| sleep 2 | |
| echo -e "\tstart samba\n" | |
| /opt/samba/sbin/smbd | |
| /opt/samba/sbin/nmbd | |
| /opt/samba/sbin/winbindd | |
| } | |
| ############################################################################################################### | |
| ############################################################################################################### | |
| no backend defined for idmap config ADV | |
| ==> log.nmbd <== | |
| [2016/03/03 17:42:06.848283, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) | |
| ***** | |
| Samba name server THECUS is now a local master browser for workgroup ADV on subnet 192.168.4.2 | |
| ***** | |
| [2016/03/03 17:42:06.849280, 0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail) | |
| find_domain_master_name_query_fail: | |
| Unable to find the Domain Master Browser name ADV<1b> for the workgroup ADV. | |
| Unable to sync browse lists in this workgroup. | |
| ############################################################################################################### | |
| [2016/03/03 17:27:15.413592, 0] winbindd/idmap.c:201(smb_register_idmap_alloc) | |
| idmap_alloc module ldap already registered! | |
| [2016/03/03 17:27:15.413704, 0] winbindd/idmap.c:201(smb_register_idmap_alloc) | |
| idmap_alloc module tdb already registered! | |
| [2016/03/03 17:27:15.413756, 0] winbindd/idmap.c:149(smb_register_idmap) | |
| Idmap module passdb already registered! | |
| [2016/03/03 17:27:15.413805, 0] winbindd/idmap.c:149(smb_register_idmap) | |
| Idmap module nss already registered! | |
| [2016/03/03 17:27:15.413895, 0] winbindd/idmap.c:149(smb_register_idmap) | |
| Idmap module rid already registered! | |
| [2016/03/03 17:27:15.413946, 0] lib/module.c:69(do_smb_load_module) | |
| Module '/opt/samba/lib/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION | |
| [2016/03/03 17:27:15.413998, 1] winbindd/idmap.c:590(idmap_alloc_init) | |
| could not find idmap alloc module rid:ADV=20000-60000000 | |
| [2016/03/03 17:27:15.418194, 0] winbindd/idmap.c:201(smb_register_idmap_alloc) | |
| idmap_alloc module ldap already registered! | |
| [2016/03/03 17:27:15.418304, 0] winbindd/idmap.c:201(smb_register_idmap_alloc) | |
| idmap_alloc module tdb already registered! | |
| [2016/03/03 17:27:15.418355, 0] winbindd/idmap.c:149(smb_register_idmap) | |
| Idmap module passdb already registered! | |
| [2016/03/03 17:27:15.418404, 0] winbindd/idmap.c:149(smb_register_idmap) | |
| Idmap module nss already registered! | |
| [2016/03/03 17:27:15.418494, 0] winbindd/idmap.c:149(smb_register_idmap) | |
| Idmap module rid already registered! | |
| [2016/03/03 17:27:15.418545, 0] lib/module.c:69(do_smb_load_module) | |
| Module '/opt/samba/lib/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION | |
| [2016/03/03 17:27:15.418597, 1] winbindd/idmap.c:590(idmap_alloc_init) | |
| could not find idmap alloc module rid:ADV=20000-60000000 | |
| ==> samba/samba.winbindd <== | |
| [2016/03/03 17:27:16.003756, 0] winbindd/idmap.c:201(smb_register_idmap_alloc) | |
| idmap_alloc module ldap already registered! | |
| ==> samba/samba.winbindd <== | |
| [2016/03/03 17:27:41.352052, 1] winbindd/winbindd_ads.c:575(query_user) | |
| No primary group for S-1-5-21-545164917-3752150462-3687892908 !? | |
| ############################################################################################################### | |
| ############################################################################################################### | |
| ############################################################################################################### | |
| ############################################################################################################### | |
| ############################################################################################################### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment