Difference between revisions of "Security: Basic OS Security"

From OnnoWiki
Jump to navigation Jump to search
Line 17: Line 17:
  
 
* File Permission
 
* File Permission
 +
 +
chmod
 +
 
* File Owner
 
* File Owner
 +
 +
chown
 +
 
* File Encryption
 
* File Encryption
 +
 +
 
* Harddisk Partition
 
* Harddisk Partition
 +
 +
df -h  make sure separate partition
 +
 
* Find World Writeable files
 
* Find World Writeable files
 +
 +
find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print
 +
 
* Find Noowner files
 
* Find Noowner files
 +
 +
find / -xdev \( -nouser -o -nogroup \) -print
  
 
==File Transfer==
 
==File Transfer==

Revision as of 10:53, 11 May 2017

Disable Services

  • Remote Desktop Disable
  • check active port
nmap -sT -O localhost
netstat -tulpn
netstat -ntlupa
  • check daemon
chkconfig --list | grep '3:on'
service serviceName stop
chkconfig serviceName off

Files Security

  • File Permission
chmod
  • File Owner
chown
  • File Encryption


  • Harddisk Partition
df -h   make sure separate partition
  • Find World Writeable files
find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print
  • Find Noowner files
find / -xdev \( -nouser -o -nogroup \) -print

File Transfer

  • Disable FTP

Sharing Files

  • Enable / Disable SMB

Memory