Page 220 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 220

Network Operating Systems-I




                    notes          CHANGE - SEE BELOW FOR XFCE 4.2


                                   XFCE 4.0

                                   First, all users who are allowed to shut down the machine from xfce4 must be listed in the /
                                   etc/xfce4/shutdown.allow file (syntax is just like in the /etc/shutdown.allow file - see above).
                                   Second,  the  file  permissions  on  the  xfce4-shutdown  program  must  be  modified.  This  file  is
                                   usually in /usr/sbin/xfce4-shutdown, so I would type
                                   chmod u+s /usr/sbin/xfce4-shutdown
                                   the “u+s” argument means that the command xfce4-shutdown will run as though the owner
                                   (probably root) initiated it, regardless of which user actually called the program.
                                   This should be enough to shut down the computer from xfce4.
                                   instructions for xfce 4.2 The game has changed for xfce 4.2. Now you must instead allow sudo
                                   access to a program called /usr/sbin/xfsm-shutdown-helper (note: this may also be located in /
                                   usr/local/libexec/ - just use the “locate” command to find xfsm-shutdown-helper).
                                   Using  the  same  kind  of  ideas  presented  above  in  the  sudo  method  of  shutdown,  I  add  the
                                   following line to /etc/sudoers file (using visudo)
                                   %shutdown ALL=(root) NOPASSWD: /usr/sbin/xfsm-shutdown-helper
                                   This allows the “shutdown” group to shutdown the machine.

                                   11.3 creating groups

                                   To create a new group:
                                   Start Linuxconf by typing linuxconf at the shell prompt.
                                   Open [Config] Æ [Users accounts] Æ [Normal] Æ [Group definition].
                                   If you have more than 15 groups, you will be given the option to select the groups by providing
                                   a prefix.

                                                             figure 11.1: group filter screen


































          214                              LoveLy professionaL university
   215   216   217   218   219   220   221   222   223   224   225