FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Posts
    26

    How to run sudo command in the script?

    I have a script with sudo command. If I double click it I see a choice "run in terminal, view, cancel, run"
    if I select just "run" sudo command does not execute, if I select "run in terminal" it works fine.
    I'd like to create launcher for this script but via it execition goes in "run" mode, so no sudo command

    How to solve this?

  2. #2
    stevea Guest

    Re: How to run sudo command in the script?

    You need this in your /etc/sudoers or other sudoers config file.
    Defaults !requiretty

  3. #3
    Join Date
    Sep 2010
    Posts
    26

    Re: How to run sudo command in the script?

    Thank you! Works!

Similar Threads

  1. [SOLVED]
    How to Run (not Run in Terminal) bash script with sudo in it?
    By premudriy in forum Using Fedora
    Replies: 2
    Last Post: 6th July 2010, 06:56 PM
  2. Help on Zenity script for Nautilus (Sudo mode)
    By DarkMasterHalo in forum Using Fedora
    Replies: 1
    Last Post: 30th November 2008, 07:01 PM
  3. Help on Zenity script for Nautilus (Sudo mode)
    By DarkMasterHalo in forum Using Fedora
    Replies: 0
    Last Post: 29th November 2008, 01:47 AM
  4. How to run command with sudo
    By fw12 in forum Using Fedora
    Replies: 12
    Last Post: 16th April 2008, 05:09 PM
  5. PHP script with sudo user
    By PaLoBo in forum Servers & Networking
    Replies: 0
    Last Post: 18th January 2007, 07:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •