wok annotate enlightenment/stuff/etc/enlightenment/sysactions.conf @ rev 2369

fix chroot in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 06 10:53:07 2009 +0000 (2009-03-06)
parents
children 45718bdd7508
rev   line source
pankso@165 1 # ENLIGHTENMENT SYSTEM ACTIONS CONFIGURATION
pankso@165 2 #
pankso@165 3 # This is a system configuration for allowing or denying certain users or
pankso@165 4 # groups to be able to do certain actions that involve system restricted
pankso@165 5 # actions such as halt, reboot, suspend, hibernate etc.
pankso@165 6 #
pankso@165 7 # This file is read in order from top to bottom - the first rule to MATCH
pankso@165 8 # will be used for a user or a group, and nothing after that is read.
pankso@165 9 #
pankso@165 10 # You must put all the ACTION definitons BEFORE user and group rule matches.
pankso@165 11 # Any action definitons after a rule match has been found will be ignored.
pankso@165 12 # This allows actions to be re-defined for different user groups, so matches
pankso@165 13 # so the command for an action can change for matches to the rules later on.
pankso@165 14 #
pankso@165 15 # Any user or group NOT matched by an allow or a deny will be ALLOWED to
pankso@165 16 # perform the action by default (system administrators should be aware of
pankso@165 17 # this and implement whatever policies they see fit). Generally speaking
pankso@165 18 # a user of a workstation, desktop or laptop is intended to have such abilities
pankso@165 19 # to perform these actions, thus the default of allow. For multi-user systems
pankso@165 20 # the system administrator is considerd capable enough to restrict what they
pankso@165 21 # see they need to.
pankso@165 22 #
pankso@165 23 # A WARNING to admins: do NOT allow access for users to this system remotely
pankso@165 24 # UNLESS you fully trust them or you have locked down permissions to halt/reboot
pankso@165 25 # suspend etc. here first. You have been warned.
pankso@165 26 #
pankso@165 27 # FORMAT:
pankso@165 28 #
pankso@165 29 # action: halt /sbin/shutdown -h now
pankso@165 30 # action: reboot /sbin/shutdown -r now
pankso@165 31 # action: suspend /etc/acpi/sleep.sh force
pankso@165 32 # action: hibernate /etc/acpi/hibernate.sh force
pankso@165 33 #
pankso@165 34 # user: username allow: halt reboot suspend hibernate
pankso@165 35 # group: groupname deny: *
pankso@165 36 # group: * deny: *
pankso@165 37 # user: * allow: suspend
pankso@165 38 # user: billy allow: halt reboot
pankso@165 39 # group: staff deny: halt suspend hibernate
pankso@165 40 #
pankso@165 41 # etc.
pankso@165 42 #
pankso@165 43 # user and group name can use glob matches (* == all for example) like the
pankso@165 44 # shell. as can action names allowed or denied.
pankso@165 45
pankso@165 46 action: halt /sbin/halt
pankso@165 47 action: reboot /sbin/reboot
pankso@165 48 #action: suspend /etc/acpi/sleep.sh force
pankso@165 49 #action: hibernate /etc/acpi/hibernate.sh force
pankso@165 50
pankso@165 51 # root is allowed to do anything - but it needs to be here explicitly anyway
pankso@165 52 user: root allow: *
pankso@165 53 # members of operator, staff and admin groups should be able to do all
pankso@165 54 group: operator allow: *
pankso@165 55 group: staff allow: *
pankso@165 56 group: admin allow: *
pankso@165 57 group: sys allow: *
pankso@165 58 # common "user" groups for "console users" on desktops/laptops
pankso@165 59 group: dialout allow: *
pankso@165 60 group: disk allow: *
pankso@165 61 group: adm allow: *
pankso@165 62 group: cdrom allow: *
pankso@165 63 group: floppy allow: *
pankso@165 64 group: audio allow: *
pankso@165 65 group: dip allow: *
pankso@165 66 group: plugdev allow: *
pankso@165 67 # put in a list of other users and groups here that are allowed or denied etc.
pankso@165 68 # e.g.
pankso@165 69 # user: myuser allow: *
pankso@165 70 # user: another allow: suspend hibernate
pankso@165 71 # deny everyone else by default
pankso@165 72 user: * deny: *
pankso@165 73 user: hacker allow: *