Skip to main content

Posts

Showing posts from November, 2014

Permanently Change hostname in linux

Permanent hostname change on RedHat based systems RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit I got this from http://www.ducea.com/2006/08/07/how-to-change-the-hostname-of-a-linux-system/

Setting your own time server (or perhaps pool.ntp.org) in Windows

http://www.timetoolsglobal.com/2013/06/21/how-to-synchronize-microsoft-windows-to-a-ntp-server-1/ Single Command for Windows servers, to use NTP w32tm /config /syncfromflags:manual /manualpeerlist:0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org After that, the trick is to tell the windows server that the time configuration has changed, this is done with w32tm /config /update Finally, tell the time service to update w32tm /resync   The following command will tell you where the server is getting it's time from  w32tm /query /source

resetting permissions on NTFS volumes

Basically, it comes down to two things. Taking ownership of files, then replacing permissions. Take Ownership with... takeown /R /F * Reset permissions with  icacls * /T /Q /C /RESET http://lallouslab.net/2009/06/14/resetting-ntfs-files-security-and-permission-in-windows-7/