Announcement

Collapse
No announcement yet.

kdesu without password

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

    kdesu without password

    Hi,

    In sudo and gksudo, one can setup a mapping in /etc/sudoers file so that you allow users to run some command as root. I can say mary is allow to run /usr/bin/someprogram on machine laptop25.

    Because Kwifimanager only scan networks when run as root, I tried setting it up to run as root.
    1. There is an option in Kmenu to do this, but it prompts you for the password.
    2. sudo does not work too well with gui programs.
    3. gksudo doesn't work in kde (at least not on my system).
    4. kdesu works but prompts you for a password.

    Is there a way I can set it up so that kwifimanager can start up as root but not prompt me for the password?

    #2
    Re: kdesu without password

    Hi,

    I'm using kde 3.5.4 and kwifimanager 3.5.4.
    kwifimanager doesn't ask for any password, I'm launching kwifimanager from command line and it's able to scan for networks...
    Can you look if you do like this ? Maybe upgrade also to kde 3.5.4 (available in repos)

    Cheers

    Comment


      #3
      Re: kdesu without password

      How to use "sudo" without prompt for password (not secure):

      open console,write this:

      export EDITOR=kedit && sudo visudo

      Find this line
      ...
      system_username ALL=(ALL) ALL

      Replace with the following line
      ...
      system_username ALL=(ALL) NOPASSWD: ALL

      Save the edited file

      Comment


        #4
        Re: kdesu without password

        I have run into exactly the same problem. In my case the program I would like to run without being prompted for a password is Firestarter, but this seems unimportant.

        I've added the following line to /etc/sudoers
        my_username ALL= NOPASSWD: /usr/sbin/firestarter

        and I've have tried to run the program with sudo, gksu and kdesu and this is the result:
        * sudo, gksu: none asks for the password but they are unable to open the display.
        * kdesu: keeps prompting for the password.

        Comment


          #5
          Re: kdesu without password

          Originally posted by cicmil
          How to use "sudo" without prompt for password (not secure):

          open console,write this:

          export EDITOR=kedit && sudo visudo

          Find this line
          ...
          system_username ALL=(ALL) ALL

          Replace with the following line
          ...
          system_username ALL=(ALL) NOPASSWD: ALL

          Save the edited file
          What a terrific tip! I am in your debt ..

          Comment


            #6
            Re: kdesu without password

            http://ubuntuguide.org/wiki/Dapper

            Comment

            Working...
            X