Script de correction des droits sur un partage utilisé par un groupe d'utilisateurs...
[progfou.git] / sysadmin / cleanup-session-menu
CommitLineData
32b05cd2
P
1#!/bin/sh
2[ "$1" ] && bool="$1" || bool="true"
3# user switching (invite session, switch to gdm, user list)
4gconftool --type boolean --set /desktop/gnome/lockdown/disable_user_switching "$bool"
5# lock screen
6gconftool --type boolean --set /desktop/gnome/lockdown/disable_lock_screen "$bool"
7# restart
8gconftool --type boolean --set /apps/indicator-session/suppress_restart_menuitem "$bool"
9# shutdown
10gconftool --type boolean --set /apps/indicator-session/suppress_shutdown_menuitem "$bool"
11# gdm user list
12gconftool --type boolean --set /apps/gdm/simple-greeter/disable_user_list "$bool"