wok-undigest annotate e18/stuff/etc/enlightenment/sysactions.conf @ rev 1210

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