- upgrade samba to 3.5 (for win2008)
- edit /etc/samba/smb.conf
- edit /etc/krb5.conf
- edit /etc/pam.d/system-auth
- add winbind option in /etc/nsswitch.conf
- config iptables to allow 139,445,389 port, or allow all for testing
- change selinux to permissive or disable just for testing
- setup time, ensure no more than 5 min different with your DC
- startup smb, winbind, oddjobd
- join domain
- test with wbinfo, kinit, ntlm_auth, check if your linux host appear in AD\computer ou
- edit /etc/squid/squid.conf
- make sure squid group have permission to access /var/lib/samba/winbindd_privilege folder
- Startup squid
- client pc proxy config
- client pc edit group policy, change Network security: LAN Manager authentication level:Send LM & NTLM - use NTLMv2
- client pc test to access internet with user authentication
Labels
2011年5月16日
Samba join domain win2008 + squid authentication with ntlm_auth
Step:
2011年2月11日
Using Local Group Policy Editor for security issue
ref.: http://www.techrepublic.com/blog/10things/10-ways-to-tweak-windows-7-using-the-local-group-policy-editor/1014
2010年12月31日
Windows Server Domain and Forest Functional Levels
ref.: http://blogs.techrepublic.com.com/datacenter/?p=308
| 2000 native | 2003 native | 2008 native | |
| DCs allowed | W2K, W2K3, W2K8 | W2K3, W2K8 | W2K8 only |
| Domain features | Universal groups, Group nesting, Group conversions, Security identifier (SID) history | Ability to rename domain controllers via netdom.exe, Logon time stamp dates, Redirect Users and Computers, Authorization Manager policies in AD, Constrained delegation, Selective authentication | Distributed File System replication support for SYSVOL, Advanced encryption, Last Interactive Logon information, Fine-grained password policies |
| Forest features | All default AD features | Forest trust, domain rename, linked-value replication, Read-only domain controller deployment, instances of the dynamic auxiliary class named dynamicObject in a domain directory partition, convert inetOrgPerson object instance into a User object instance, create instances of new group types to support role-based authorization, deactivation and redefinition of attributes and classes in the schema | No new additional forest-level features |
2010年7月19日
Full backup NTFS partition using Linux
Backup:
Suppose backup partition is sda1 (The first partition on master HD) and the backup data will store on another system/drive
0. Optional step, backup boot menu if your using multiboot. Do it in windows: bcdedit /export "C:\bcdbackup\bcdbackup"
1. Bootup with rescue CD
2. mount another location to place the backup data, as example we use sda2
> mkdir /mnt/backup
> mount /dev/sda2 /mnt/backup
> dd if=/dev/sda of=sda.mbr bs=512 count=1 <----Backup MBR
> sfdisk -l /dev/sda > sda.sf <---Backup partition status
> ntfsclone --save-image -o - /dev/sda1 | gzip > sda1.pimg.gz <---Wait with coffee
3. Verify the backup data with "ls /mnt/backup"
Restore:
1. Bootup with rescue CD
2. Start to restore mbr, partition status and partition
> mkdir /mnt/backup
> mount /mnt/backup /dev/sda2
> cd /mnt/backup
> dd of=/dev/sda if=sda.mbr bs=512 count=1
> sfdisk -f /dev/sda < sda.sf
> mknod /dev/sda1 b 8 1 <------create special or ordinary file for sda1, so you need to check major and minor number
> gunzip < sda1.pimg.gz | ntfsclone -r -O /dev/sda1 -
3. Optional step, do it in windows: bcdedit /import "C:\bcdbackup\bcdbackup"
Suppose backup partition is sda1 (The first partition on master HD) and the backup data will store on another system/drive
0. Optional step, backup boot menu if your using multiboot. Do it in windows: bcdedit /export "C:\bcdbackup\bcdbackup"
1. Bootup with rescue CD
2. mount another location to place the backup data, as example we use sda2
> mkdir /mnt/backup
> mount /dev/sda2 /mnt/backup
> dd if=/dev/sda of=sda.mbr bs=512 count=1 <----Backup MBR
> sfdisk -l /dev/sda > sda.sf <---Backup partition status
> ntfsclone --save-image -o - /dev/sda1 | gzip > sda1.pimg.gz <---Wait with coffee
3. Verify the backup data with "ls /mnt/backup"
Restore:
1. Bootup with rescue CD
2. Start to restore mbr, partition status and partition
> mkdir /mnt/backup
> mount /mnt/backup /dev/sda2
> cd /mnt/backup
> dd of=/dev/sda if=sda.mbr bs=512 count=1
> sfdisk -f /dev/sda < sda.sf
> mknod /dev/sda1 b 8 1 <------create special or ordinary file for sda1, so you need to check major and minor number
> gunzip < sda1.pimg.gz | ntfsclone -r -O /dev/sda1 -
3. Optional step, do it in windows: bcdedit /import "C:\bcdbackup\bcdbackup"
2010年5月11日
Windows startup no desktop screen -- explorer.exe don't startup
open registry (menu Start -> run (or run Comand prompt): regedit).
open: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ Current
Version \ Winlogon
At right pane there is "Shell". The value of it must be "explorer.exe"
open: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ Current
Version \ Winlogon
At right pane there is "Shell". The value of it must be "explorer.exe"
2010年5月3日
sql 2008 server express installation fail - Performance counter registry hive consistency
Solution1:
Install with the following command:
C:\Users\Administrator\Downloads\SQLEXPRWT_x64_EN.exe U>setup.exe /ACTION=install /SKIPRULES=PerfMonCounterNotCorruptedCheck
Solution2 (Environment: win vista sp2 32bit):
I fixed by change the registry
go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
then you can copy 0404 reg key and create new reg key call 004
Then install again.
Install with the following command:
C:\Users\Administrator\Downloads\SQLEXPRWT_x64_EN.exe U>setup.exe /ACTION=install /SKIPRULES=PerfMonCounterNotCorruptedCheck
Solution2 (Environment: win vista sp2 32bit):
I fixed by change the registry
go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
then you can copy 0404 reg key and create new reg key call 004
Then install again.
2009年12月1日
Cache 50 Windows logins for better availability (快取的網域登入資訊)
ref.: http://support.microsoft.com/kb/172931
快取 Windows 記憶體前一個使用者的登入資訊在本機,以便如果在更新登入嘗試時無法使用登入伺服器,它們可以登入。
快取登入資訊由下列機碼控制:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"cachedlogonscount"="0 - 50"
快取 Windows 記憶體前一個使用者的登入資訊在本機,以便如果在更新登入嘗試時無法使用登入伺服器,它們可以登入。
快取登入資訊由下列機碼控制:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"cachedlogonscount"="0 - 50"
2009年9月11日
Virtual(portable) desktop for XP - using MojoPAC
Installation:
Step 1: go to the site http://www.mojopac.com/ and download mojopac
Step 2: When install the mojopac, you can select the locatation(C:, D: or removable USB) to install the virtual XP
When you finish the installation, you can find the mojo.exe, execute it to launch your virtual XP.
If you installed to other location, you can copy whole mojo directory to usb drive or other pc, so that you not need to install again.
Step 1: go to the site http://www.mojopac.com/ and download mojopac
Step 2: When install the mojopac, you can select the locatation(C:, D: or removable USB) to install the virtual XP
When you finish the installation, you can find the mojo.exe, execute it to launch your virtual XP.
If you installed to other location, you can copy whole mojo directory to usb drive or other pc, so that you not need to install again.
訂閱:
文章 (Atom)