Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
lynis
prepare_for_suse.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prepare_for_suse.sh of Package lynis
#!/bin/bash umask 0077 function fileperms() { PERMS=$(grep -E "^PERMISSION_SECURITY=" /etc/sysconfig/security | awk -F'=' '{print $2}' | sed s/\"//g) echo $PERMS for p in $PERMS do echo $p cat "/etc/permissions."$p | grep -E "^/\w.*" | awk -F' ' '{print "file:"$1":"$3":"$2":Linux:"}' >> $TMPDIR/fileperms.lst done if ! [ -f db/fileperms.db.orig ]; then cp -v db/fileperms.db db/fileperms.db.orig fi cp $TMPDIR/fileperms.lst db/fileperms.db } TMPDIR=$(mktemp -d /tmp/lynis.XXXXXX) echo "prepare lynis config for your suse systems" echo "1. lookup file permission level" fileperms #rm -rf $TMPDIR
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor