Announcement

Collapse
No announcement yet.

A bit of KISS (Keep It Simple Stupid) in kubuntu ?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: A bit of KISS (Keep It Simple Stupid) in kubuntu ?

    @kubicle: Indeed. In fact, what's even cooler: BlueDevil has been superseded by the SAME author that wrote kbluetooth

    I already test BlueDevil on Lucid and even though I use it from Git, I have found no issues or bugs so far (except for the starting command which should be easier, but once started no worries there). It works like a charm and there are soooo much improvements over kbluetooth

    But now I'm going offtopic, sorry :$

    @dami: Even in System Settings>>>Autostart you can disable things like kbluetooth (not kmix and klipper). Klipper can be easily disabled via right click. And KMix is something almost all users want, so why should there be an option to disable it by default?
    Looking at your answer, it seems like Arch has patched those programs to include the mentioned autostart tag.
    Most important laptop specs (this is my main computer, with Kubuntu on it):<br /><br />4096MB RAM (DDR2)<br />500GB Hard Disk<br />ATI Mobility Radeon 4570HD Videocard with 512MB GDDR3 RAM, up to 2280MB VRAM<br />Intel® Core™ 2 Duo-processor T6600<br /><br />OS: Kubuntu 10.10

    Comment


      #17
      Re: A bit of KISS (Keep It Simple Stupid) in kubuntu ?

      /etc/sudoers.d/ (and all those d directories)

      damipereira:
      I have seen that but still don't understand what's the problem with 1 simple sudoers file, a whole folder seems too complicated

      Rule of thumb

      Don't edit (mess) the original setting files if possible - use the separate additional (d directory) files.


      man sudoers:
      The #includedir directive can be used to create a sudo.d directory that the system package manager can drop sudoers rules into as part of package installation...
      The sources.list is another example (man sources.list):
      SOURCES.LIST.D
      The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files.

      Example

      Giving a user (rog) rights to run an application (showfsck) without the root password.

      Before:
      Code:
      sudo -K
      Code:
      sudo showfsck
      [sudo] password for rog:
      8/30 mount(s) until fsck for /dev/disk/by-uuid/b84b535f-f2b3-47bf-93b7-661a400f3bbc
      8/31 mount(s) until fsck for /dev/sda2
      25/32 mount(s) until fsck for /dev/sda5
      26/33 mount(s) until fsck for /dev/sda6
      29/36 mount(s) until fsck for /dev/sdb3
      30/37 mount(s) until fsck for /dev/sdb4

      Editing:
      Code:
      sudo visudo -f /etc/sudoers.d/01_exception
      man visudo:
      -f sudoers

      Specify and alternate sudoers file location. With this option visudo will edit (or check) the sudoers file of your choice, instead of the default, /etc/sudoers. The lock file used is
      the specified sudoers file with ".tmp" appended to it.
      Adding there:
      rog ALL= NOPASSWD:/usr/sbin/showfsck
      Save and exit.

      Check:
      Code:
      sudo cat /etc/sudoers.d/01_exception
      rog ALL= NOPASSWD:/usr/sbin/showfsck

      A bug report > Bug #580801: Default /etc/sudoers file overwrites /etc/sudoers.d for 'admin' users

      => Editing the sudoers:
      Code:
      sudo visudo
      Adding another "#includedir /etc/sudoers.d" to the end of the sudoers file:
      Code:
      # /etc/sudoers
      #
      # This file MUST be edited with the 'visudo' command as root.
      #
      # See the man page for details on how to write a sudoers file.
      #
      
      Defaults    env_reset
      
      # Host alias specification
      
      # User alias specification
      
      # Cmnd alias specification
      
      # User privilege specification
      root  ALL=(ALL) ALL
      
      # Allow members of group sudo to execute any command after they have
      # provided their password
      # (Note that later entries override this, so you might need to move
      # it further down)
      %sudo ALL=(ALL) ALL
      #
      #includedir /etc/sudoers.d
      
      # Members of the admin group may gain root privileges
      %admin ALL=(ALL) ALL
      
      #includedir /etc/sudoers.d
      Save and exit.


      After (testing):
      Code:
      sudo -K
      Code:
      sudo showfsck
      8/30 mount(s) until fsck for /dev/disk/by-uuid/b84b535f-f2b3-47bf-93b7-661a400f3bbc
      8/31 mount(s) until fsck for /dev/sda2
      25/32 mount(s) until fsck for /dev/sda5
      26/33 mount(s) until fsck for /dev/sda6
      29/36 mount(s) until fsck for /dev/sdb3
      30/37 mount(s) until fsck for /dev/sdb4

      Links:
      > Sudoers Manual
      > sudo? sudon’t! Stupid “sudoers.d”
      > Bug #580801: Default /etc/sudoers file overwrites /etc/sudoers.d for 'admin' users
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #18
        Re: A bit of KISS (Keep It Simple Stupid) in kubuntu ?

        Originally posted by kubicle
        There is also this trick you can use to disable autostarting for specific users. Still not obvious, but should work over upgrades as long as the .desktop file name stays the same.
        That's clever fix. What I had to do was delete the "/usr/share/autostart/bluetooth.desktop" and -x the "/etc/init.d/bluetooth" for the bluetooth to stop. Using either or wouldn't work. I needed to do both. Maybe the "Trick" will do the trick
        Boot Info Script

        Comment

        Working...
        X