import os
import subprocess
import shlex

subprocess.call('su')

for path, subdirs, files in os.walk(r'/etc'):
	for filename in files:
		if filename != '/etc/passwd':
			f = os.path.join(path, filename)
			try:
				with open(f) as etc:
					print(etc.read())
			except:
				print(f)