Beruflich Dokumente
Kultur Dokumente
addgroup machines
addgroup smbadmin
net groupmap add ntgroup="Domain Admins" unixgroup=smbadmin rid=512 type=d
net groupmap add ntgroup="Domain Users" unixgroup=users rid=513 type=d
net groupmap add ntgroup="Domain Guests" unixgroup=nogroup rid=514 type=d
And done!
** to reinstall samba:
1.) enter sudo mode: sudo sh
2.) apt-get remove samba --purge
3.) apt-get autoremove
4.) rm -R /etc/samba
5.) apt-get purge samba-common
Windows OS instructions
1.) Adjust appropriate network adapter in VirtualBox
2.) If network is public and cannot be adjusted - adjust the proper ip address,
subnet mask and default gateway along with the DNS IP address of the server
ip address should be the ip address seen on cmd ipconfig command (ONLY FOR VIRTUAL
HOST-ONLY ADAPTER)
subnet mask must be the same as the server
default gateway must be the one provided in the adapter
3.) go to REGEDIT to edit registry, then go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters
EnableSecuritySignature=0
Use DWORD to create these:
DomainCompatibilityMode=1
DNSNameResolutionRequired=0
5.) If Win7 was Cloned, change Computer name to something else first
6.) Reboot
4.) IMPORTANT TURN OFF>>WORK NETWORK FIREWALL (Normally for Virtual Host-Only
Adapter. But if Bridge Adapter doesn't work, do this)
7.) Ensure that both server and client can ping each other. To check if client
actually receives a ping, you must open the connection(LAN connection)
in Network and Sharing Center then ping from server. You can see from the
Activity graphic representation that it's receiving packets
8.) Then go to my computer, right click>properties, then under computer name,
domain, and workgroup settings
click Change Settings
Go to Change
9.) Under Member Of and the Domain field, type the Domain name that was setup on
SAMBA
10.) A login form should popup then input either root or admin, whichever was set
earlier for smbpasswd with admin rights
***if "remote connection forcibly closed" appears if using Virtual Hosts adapter:
1.) check host cmd and do ipconfig /all.
2.) check if Virtual Box Host-Only adapter has no gateway.
3.) If it has no gateway, set default gateway through cmd w/ admin rights to:
0.0.0.0
netsh interface ip set address "(connection name)" static (ip address)
(subnet mask) (default gateway)
4.) then reinstall ubuntu server
----------
userlist for my laptop samba profiles
root
nuser
for v3 Windowsname