Fedora Linux Support Community & Resources Center
  #1  
Old 4th July 2012, 01:14 PM
borispr Offline
Registered User
 
Join Date: Sep 2010
Posts: 21
linuxfirefox
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?
Reply With Quote
  #2  
Old 4th July 2012, 03:09 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,935
linuxfirefox
Re: How to run sudo command in the script?

You need this in your /etc/sudoers or other sudoers config file.
Defaults !requiretty
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 4th July 2012, 03:24 PM
borispr Offline
Registered User
 
Join Date: Sep 2010
Posts: 21
linuxfirefox
Re: How to run sudo command in the script?

Thank you! Works!
Reply With Quote
Reply

Tags
command, run, script, sudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 15:03 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Wattrelos - Khadyzhensk Photos - Bad Waldsee