How to configure SFTP in CENTOS


Configuration of SFTP in CentOS

[root@Karthick~]# cd /etc/vsftpd/
[root@Karthick~]# /usr/bin/openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout vsftpd.pem -out vsftpd.pem
[root@Karthick~]#[root@station1 ~]# vim /etc/vsftpd/vsftpd.conf
#For SSL
ssl_enable=YES
#To allow anonymous users to use SSL
allow_anon_ssl=YES
#local users to use both ssl and unsecure way
force_local_data_ssl=YES
#Force ssl
force_local_logins_ssl=YES
# Permit TLS v1 protocol connections. TLS v1 connections are preferred
ssl_tlsv1=YES
# Permit SSL v2 protocol connections. TLS v1 connections are preferred
ssl_sslv2=YES
# permit SSL v3 protocol connections. TLS v1 connections are preferred
ssl_sslv3=YES
#RSA certificate
rsa_cert_file=/etc/vsftpd/vsftpd.pem

[root@Karthick~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[root@Karthick~]#sftp karthick@localhost
Connecting to localhost..
karthick@localhost password:
sftp> ls
Desktop Documents Downloads Music Pictures Public Templates Videos
sftp> bye
[root@Karthick~]#

Determining the True Amount of Space in an Exchange Database


Database Space Tree Dump (Eseutil /ms)


If you want a more in-depth look at the space used in the database, a space dump using Exchange Server Database Utilities (Eseutil) is necessary. Note that the following example is truncated for brevity:

C:\Program Files\Exchsrvr\MDBDATA>..\bin\eseutil /ms priv1.edb

Microsoft(R) Exchange Server Database Utilities

Version 6.5

Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating FILE DUMP mode…

Database: priv1.edb

****************************** SLV SPACE DUMP *************************

Chunk          Free Res Del Com  |———— Used ————|

=======================================================================

512             110   0   0 402  *************************

1024              0 512   0   0  ********************************

1536            512   0   0   0

2048            512   0   0   0

2560            512   0   0   0

3072            512   0   0   0

3584            512   0   0   0

4096            512   0   0   0

4608            118   0   0 394  ************************

5120              0   0   0 512  ********************************

5632              0   0   0 512  ********************************

6144              0   0   0 512  ********************************

6656              0   0   0 512  ********************************

7168              0   0   0 512  ********************************

7680              0   0   0 512  ********************************

8192            238   0   0 274  *****************

=======================================================================

TOTALS:

Free:         3538

Reserved:          512

Deleted:            0

Committed:         4142

Unknown:            0

————-

8192

Ref Url: http://technet.microsoft.com/en-us/library/aa996139%28v=exchg.65%29.aspx

To find inactive computer in a domain controller.


Dsquery is the command to get inactive computers in a domain. The syntax is given below.

a.Echo all inactive computer accounts (more than 4 weeks inactive):
C:\> dsquery computer -inactive 4

b.Disable all inactive computer accounts (more than 4 weeks inactive):

C:\> dsquery computer -inactive 4 | dsmod computer -disabled yes

c.Find all computers in the Chennai OU:

C:\> dsquery computer ou=chennai,ou=computer,dc=test,dc=com

Lan Messenger


I find very good open source software for LAN IM, name Squiggle.

This works perfectly in LAN and you need to give exclusion in the windows firewall.

There is no installation required for this software, just double click the squiggle.exe file and create a shortcut.

Please find the url link for downloading the software.

http://squiggle.codeplex.com/downloads/get/507423

https://www.dropbox.com/s/hun07d711fj361m/Squiggle-3.2%20Client.zip

Remove local user from computer with domain group policy?


I need to remove a local user from all computers on the network.  Is that possible with group policy to complete this work?

Solution:

1. Create a new GPO, and go to Computer Config > Preferences > Control Panel Settings > Local Users and Groups.

2. Right click, and choose New > Local User.

3. In the next window, choose Delete as the Action type, and then type in the name of the user to delete.

 

Ref: http://answers.yahoo.com/question/index?qid=20130516060936AAgCBjU

 

 

How to find local users which have local admin rights in a network?


I had a task where I need to find local users which have admin rights in the network. I find a tool viewfinity which works well in my environment.

Please go through the url below.

http://www.viewfinity.com/Resources/Discover_Desktops.aspx

https://www.dropbox.com/s/6o3r536c74ukjkg/VFLocalAdminDiscoverySetup.zip