rwxrwxrwx No restriction, global WRX any user can do anything.
755
rwxr-xr-x Owner has full access, others can read and execute the file.
700
rwx—— Owner has full access, no one else has access.
666
rw-rw-rw- All users can read and write but not execute.
644
rw-r–r– Owner can read and write, everyone else can read.
600
rw——- Owner can read and write, everyone else has no access.
DIRECTORY
DESCRIPTION
/
/ also know as “slash” or the root.
/bin
Common programs, shared by the system, the system administrator and the users.
/boot
Boot files, boot loader (grub), kernels, vmlinuz
/dev
Contains references to system devices, files with special properties.
/etc
Important system config files.
/home
Home directories for system users.
/lib
Library files, includes files for all kinds of programs needed by the system and the users.
/lost+found
Files that were saved during failures are here.
/mnt
Standard mount point for external file systems.
/media
Mount point for external file systems (on some distros).
/net
Standard mount point for entire remote file systems – nfs.
/opt
Typically contains extra and third party software.
/proc
A virtual file system containing information about system resources.
/root
root users home dir.
/sbin
Programs for use by the system and the system administrator.
/tmp
Temporary space for use by the system, cleaned upon reboot.
/usr
Programs, libraries, documentation etc. for all user-related programs.
/var
Storage for all variable files and temporary files created by users, such as log files, mail queue, print spooler. Web servers, Databases etc.
Linux Interesting Files / Dir’s
Places that are worth a look if you are attempting to privilege escalate / perform post exploitation.
DIRECTORY
DESCRIPTION
/etc/passwd
Contains local Linux users.
/etc/shadow
Contains local account password hashes.
/etc/group
Contains local account groups.
/etc/init.d/
Contains service init script – worth a look to see whats installed.
/etc/hostname
System hostname.
/etc/network/interfaces
Network interfaces.
/etc/resolv.conf
System DNS servers.
/etc/profile
System environment variables.
~/.ssh/
SSH keys.
~/.bash_history
Users bash history log.
/var/log/
Linux system log files are typically stored here.
/var/adm/
UNIX system log files are typically stored here.
/var/log/apache2/access.log
Apache access log file typical path.
/var/log/httpd/access.log
Apache access log file typical path.
/etc/fstab
File system mounts.
Brett Uglow
I am a software engineer (with a focus on the front-end) with 15+ years in the IT industry, working with large telecommunications and financial companies. I’m passionate about creating great user experiences, writing code that is testable + maintainable + efficient, and seeing peoples’ lives changed-for-the-better.
I am the voice of one crying in the wilderness, “Make straight the way of the Lord!” John 1:23
I have been developing a website for a top-tier client in Melbourne. The site is built using AngularJS (v1.1.5 as of time of writing), SASS, Compass and GruntJs to pull it all together. The development team consisted of myself as lead dev, Mario Skouros, Peter Mescalchin and Steven Yip, with assistance from Michael Black and Vlado Grancaric. Well done guys!
On Monday 23rd June, I was privileged to attend the first AngularJS Melbourne Meetup as a guest speaker. Thanks to Alex for organising the event. It was a great night!