Linux administration

---------------------------

SMTP CHECKING

---------------------------

telnet 112.111.12.125 25

ehlo

mail from:

rcpt to :

data
TEST MAIL

.



Note : . for coming out
------


*****************************************************************************************************************

----------------------------------------------

Sharing files b/w Linux

----------------------------------------------

ssh 112.111.12.125 25


rpm -qa | grep -iftp



SERVER SIDE
------------

Install nfs.util-ver.....rpm

# rpm -ivh nfs-util.rpm (or) rpm -ivh --aid --force xxx.rpm


#vi /etc/exports

FSname hostname(options)
/nfsmount 112.111.12.125(rw,Sync)

:wq

Note: Giving permission for root

(rw,Sync,no_root_Squash)



# service nfs start
#exports -av



CLIENT SIDE
---------------

#showmount -e serverip
#showmount -e 112.111.12.125



#mount 112.111.12.125:/nfsmount /mnt

-->

add entry /etc/fstat --> to mount permanently

112.111.12.125:/nfsmount /nfs nfs defaults 0 0




*****************************************************************************************************************


----------------------------------------------

Copy the files from one linux machine to another

----------------------------------------------


# scp somefile.txt remotemachineIP:/root/Desktop/.




*****************************************************************************************************************



----------------------------------------------

Disablein the service at machine startup

----------------------------------------------

#ntsysv


*****************************************************************************************************************



------------------------------------------------------

Takin the backup of favourites in Mozilla firefox

-------------------------------------------------------



Edit --> preferences --> view --> hidden files


root/.mozilla/firefox/
dx249ZZ1.default


*****************************************************************************************************************

-------------------------

Enabling telnet

-------------------------

/etc/xinetd.d/telnet

Disable --> NO

*****************************************************************************************************************

------------------------------

Blocking the user connecting

------------------------------

#sshd stop

vi /etc/host.deny


SSHD: 112.111.12.125

service sshd restart


*****************************************************************************************************************

------------------------------

Killing the process

------------------------------

kill -9 %%


*****************************************************************************************************************