MRKAVANA (mrkavana@gmail.com) - www.facebook.com/kavanathai

Aug 22, 2011

Optimize and Secure Linux Server on Redhat/Fedora

On normal server without web(apache,lighttpd,tomcat), printer, nfs, ftp, dns, oracle, weblogic, selinux, yum, tftp, snmp......the following users, services should be locked or disble
(http://linuxhelp-kavanathai.blogspot.com/2011/08/how-to-lock-unlock-enable-disable-linux.html)  :

-----------------------------------------------------------------------------------------------
[root@t1test ~]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
avahi-autoipd:x:100:101:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
gdm:x:42:42::/var/gdm:/sbin/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
---------------------------------------------------------------------------------------------
NetworkManager 
acpid         
anacron         
atd             
auditd          
autofs          
avahi-daemon    
avahi-dnsconfd  
bluetooth       
capi            
chargen-dgram
chargen-stream
conman          
cpuspeed        
crond           
cups
daytime-dgram
daytime-stream
discard-dgram
discard-stream            
dnsmasq         
dund       
echo-dgram
echo-stream
eklogin
ekrb5-telnet     
firstboot       
gpm             
gssftp
haldaemon       
hidd            
hplip           
httpd           
ip6tables       
ipmi            
iptables        
irda            
irqbalance      
isdn            
kdump           
klogin
krb5-telnet
kshell
kudzu           
lvm2-monitor    
mcstrans        
mdmonitor       
mdmpd           
messagebus      
multipathd      
netconsole      
netfs           
netplugd        
network         
nfs            
nfslock        
nscd          
ntpd           
rdisc      
readahead_early
readahead_later
restorecond  
rhnsd      
rpcgssd
rpcidmapd    
rpcsvcgssd 
rsync  
salinfo_decode 
saslauthd     
sendmail  
setroubleshoot
smartd    
snmpd      
snmptrapd    
sshd       
syslog      
sysstat    
tcpmux-server
tftp
time-dgram
time-stream
vncserver    
wdaemon    
winbind    
wpa_supplicant 
xfs     
xinetd   
ypbind   
yum-updatesd
------------------------------------------------------------------------------------------------

No comments:

Post a Comment