john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Security unnecessary packages directories users

linux security: stop services, removing unnecessary packages, directories, and users for security

http://www.puschitz.com/SecuringLinux.shtml

//do we need to install chkconfig - is it red hat? not ubu? chkconfig --list | less

apt-get install deborphan

to find and uninstall unused packages


remove cluttering FHS (filesystem hierarchy standard) http://www.pathname.com/fhs/

directories

rmdir opt media srv


//a list of all unlocked (encryptable) accounts

egrep -v '.*:*|:!' /etc/shadow | awk -F: '{print $1}'

//the following finds if the user owns any files, if not, then probably safe to delete

find / -path /proc -prune -o -user -ls

userdel -r //the -r removes the user's home directory and mail spool


  • « Security web log weirdness
  • Linux sort text files »

Published

Feb 6, 2010

Category

linux

~98 words

Tags

  • directories 3
  • linux 249
  • packages 3
  • security 16
  • unnecessary 2
  • users 6