Software :: Execute Shell Commands That Require Root Password From PHP?

Jun 26, 2010

php. I am developing a web-interface for an application that sometimes needs root privs. Editting /etc/sudoers is not an option since the web interface needs to be portable to other users when they install my application. Is there any workaround ?PHP Code:

php code:$command = "./script.sh /dev/$DISKNAME &";$shellOutput = shell_exec($command); 
Code:

[code]...

View 2 Replies


ADVERTISEMENT

Debian :: Modify To Automatically Grant Root Privileges And Execute Commands When Starts?

Aug 22, 2010

I'm connected to the internet using a wireless router. Each time I boot, I have to grant root privileges and type in a shell: iwconfig wlan0 essid linksys key dhclient wlan0 Isn't there a file(or location) that I can modify to automatically grant root privileges and execute these commands when debian starts? Something like autoexec.bat in windows.

Something else I'd like to mention is when I execute iwconfig.... for the first time, I get this incomplete result:

IEEE 802.11bg  ESSID:"linksys"
Mode:Managed  Access Point: Not-Associated   Tx-Power=27 dBm
Retry  long limit:7   RTS thr:off   Fragment thr:off
Encryption key***********
Power Management:off

[Code]...

View 4 Replies View Related

Programming :: Sudo In Shell Script \ Ask For The Password Then Execute The Script At Background And Get Back To Menu?

May 27, 2011

Whats wrong with this line?Code:sudo -u user /usr/bin/nohup sh /home/user/somescript.sh &This should ask for the password then execute the script at background and get back to menu

View 8 Replies View Related

Ubuntu :: Edit Which Commands Require Sudo?

Aug 2, 2010

is there a way to edit which commands require a sudo? or some programs, like the CPU frequency monitor on panel, requires a password to change. where would i start if i want to change this?

View 2 Replies View Related

General :: All Commands Of Terminal With Their Uses And Functoins Require?

Nov 11, 2010

I need all the Commands of linux terminal with their uses and functions..

View 2 Replies View Related

Ubuntu :: Setting Root Password For Maintenance Shell - Failed

Aug 10, 2010

I'd like to keep root pw==sudo pw==user pw on a box with Code: $ lsb_release -ds Ubuntu 9.10 $ uname -rv 2.6.31-22-generic #61-Ubuntu SMP Wed Jul 28 02:02:56 UTC 2010 Just now it hung going to sleep, so I shutdown via BRS. On cold boot, HD mount failed and I got the prompt to hit Esc to goto maintenance shell. I did that, got the prompt for the root password, and entered my sudo.

That failed! though it has worked before ... but I changed my user password on that box recently, and I'm pretty sure I haven't needed to fsck between then and now. I'm wondering: What do I need to do to set my root pw? I was able to C-d out of the shell, and karmic took care of itself, but I'd prefer not to rely on that. Is there a way to make my root pw always equal my user pw? If so, is that a Very Bad Idea?

View 2 Replies View Related

Ubuntu :: Require Password To Launch App?

May 25, 2011

I installed a Rednotebook 1.1.6. Naturally it's personal, but for some reason after years in development it lacks password protection. I intend to launch it from the Unity dock.How can I restrict access to rednotebook (specifically, the rednotebook.desktop file) via a simple password prompt?

View 9 Replies View Related

Server :: Apache : Require Password For Certain IPs?

Feb 20, 2010

Is it possible to configure Apache with password security (AuthConfig), yet allow certain IP addresses access without being prompted for a password?

View 3 Replies View Related

Ubuntu :: Require Password When Inserting Usb Drive?

Sep 21, 2010

does anyone know how to make ubuntu 10.04 ask for a password when inserting a thumb drive / flash drive

View 8 Replies View Related

Ubuntu :: Require Sudo Password On Partition Mount?

Apr 30, 2010

It appears that Lucid has done away with the gksu prompt that used to greet you when you try to mount a partition. Is there any known way of restoring this? I have a number of partitions which I would rather have protected by a password (even though I know that booting a live cd will give anyone access to any mountable partition, no questions asked). I've had a quick look in gconf and found nothing that looks like it would control this behaviour, but it's quite likely that I overlooked something.

View 9 Replies View Related

Ubuntu :: Gnome-terminal Require Password At Start?

Jul 9, 2010

I'm usingg Ubuntu 10.04. When i start gnome-terminal (from terminal or gui) at the first i see invite to enter sudo pass: Terminal window is opening and i see the string:

[sudo] password for tenhi:

Yesterday i changed .bashrc file and some settings in User and Groups management.

View 3 Replies View Related

Ubuntu Security :: Require Password To Mount Drives?

Feb 2, 2011

i have a triple boot of windows XP,7 and ubuntu10.10 netbook remixis it possible to require a password to mount the windows drivesthere is no log on password on the ubuntu but i dont want people to access the other drives unless they have my password

View 3 Replies View Related

Ubuntu Security :: SSH: Require Password Protected Keys

Mar 11, 2011

How can I configure my SSH server (OpenSSH on Debian 5) so that it requires public key authentication *and that the keys are password protected*?

View 8 Replies View Related

Ubuntu Security :: Require A Password To Open Any Application?

Apr 1, 2011

Is there a way to do this? I disabled the log in screen for my Ubuntu 10.10 for convenience with remote desktop (so the machine starts up right away and connect to vnc). But doing this means anybody at my house can just access my computer and application (brother's friends are a little curious) and they could easily access Keyring and grab all my passwords. So is there a way to require a password everytime an application is opened?

View 5 Replies View Related

Ubuntu Security :: Require Password To Install Anything Onto System?

Jun 6, 2011

Is there any way torequire a password for anything to be installed onto my computer? For example, lately, I clicked on an image in googleimages that ended up installing something onto my pc. If a password was required for any installation, this would not have happened.

View 9 Replies View Related

Ubuntu Security :: Don't Require Password For Administrative Tasks?

Jun 22, 2011

The title says it all. Is there a way to just click ok to administrative tasks instead of having to enter my password every time? Sort of like Windows 7's UAC.I'm using ubuntu 10.04 LTS. I don't want to log in as root

View 9 Replies View Related

OpenSUSE :: Require A User To Enter Password To Open Terminal?

Sep 21, 2010

I'm in the process of configuring a "guest" account for houseguests tose my computer. I've got the file permissions set, but I'd also like to restrict their access to the terminal. It seems to me that most of the damage that can be done to a computer goes through the terminal.I downloaded Pessulus (I use Gnome)but it doesn't require a password. the profiled user can just open Pessulus and alter their profile -- what's the point?Is there a way I can require a user to enter a password, either for any terminal or Pessulus?I like Pessulus -- it's concise and easy to use. But it doesn't seem very secure as I understand it.

View 5 Replies View Related

Ubuntu Security :: Require Password To Mount External Drives?

Sep 1, 2010

Is there a way in Lucid to require a sudo password to mount all external drives (e.g. thumb drives, USB CD/DVD drives, USB hard drives)

View 1 Replies View Related

OpenSUSE Install :: Root Password Not Set \ Wasn't Prompted To Set The Root Password?

Jun 25, 2010

When I installed the OS, I wasn't prompted to set the root password. Is this a bug, or did my install hose up?

View 4 Replies View Related

General :: Execute Different Commands With Same Name?

May 14, 2010

I have a two seperate files on my computer,

which execfile
/usr/local/bin/
/usr/bin/

so, i have two files with the same name in two different directories. How can I specify exactly which command to run?

View 6 Replies View Related

Ubuntu :: Thunderbird Email Doesn't Require Password To Use Offline Storage?

Jul 26, 2010

Is there a way to make Mozilla Thunderbird not allow anyone to view my offline storage without my password and to make it so whatever data it does store on my computer is encrypted with my password? Or is there another client that will do this better? I don't like the idea that anyone could waltz into my office and read my old emails.

View 5 Replies View Related

Ubuntu Servers :: Can't Get Client To Require Password Change When Centos-DS Requires It?

Oct 15, 2010

I am running ubuntu 10.04 64 bit with Centos Directory Server centralizedauthentication tool. I can log in just fine with my ubuntu client, however when go to my Directory Server and tell it to require a password change on reset for any of my users, the ubuntu client doesn't require the user to reset their password. the reason I need this to work is so I can reset a users password from the Directory server and then have it use what I set it to for their next login attempt but then require them to set their own password. After days of searching I have only found out that it can be done by setting the option in Directory Server but Ubuntu 10.04 seems to just ignore the option. I am using the libnss-ldapd and libpam-ldapd packages on the Ubuntu client because the libnss-ldap and libpam-ldap didn't work at all, what am I missing?

View 1 Replies View Related

General :: Partitioning For Slackware 10.1 - Require Traditional Root Account

Aug 31, 2009

In the ubuntu series I find my hard disk description as this: /dev/sda. As we know in slackware (10.1) for partitioning we either use 'fdisk' or 'cfdisk' when I use fdisk, like mentioned: fdisk /dev/sda. It says disk cannot be found.... or something like that. I think I know why?

You see my hard disk has the D: E: F: as extended partitions comprising logical drives and only my C: drive is pure primary. Does this have any connection with my problem? As from my explanation you can find that I'm a total wreck with computers.. but I'm very thrilled to learn linux. The reason why I need slax is that I require a traditional root account.

View 14 Replies View Related

Fedora :: How To Execute Commands On Startup

Aug 11, 2011

how to execute commands on startup. I've added lines to /etc/rc.d/rc.local, /etc/rc.local, I've put scripts (with extension .sh) into /etc/init.d/ and I've set the executable permission thing on all of them with chmod -x. I *still* can't get anything at all to execute on startup. The truth is, I'm trying to enable multitouch and button tapping automatically when I startup Fedora. I have the commands

[code]...

Which I want to execute whenever I start Fedora (it's a bit tedious to write them every time, or even to have to execute a script myself whenever I start my computer). Furthermore, if I can figure this out, then I can do all sorts of things. Does anyone have a clear, surefire way in which I can do this? I'm not good with using Linux at all

View 7 Replies View Related

Ubuntu :: Execute Other Commands In A Row In That Same Newshell

Nov 13, 2010

I have a script --> WEP.sh and i want to open severel new processes in a second shell.

gnome-terminal -e "airmon-ng check" #this is working... but is there any possibility to execute other commands in a row in that same newshell for example airmon-ng stop wlan1 or sleep 10 or echo....?

View 2 Replies View Related

General :: Execute Example.sh Files Like Other Commands?

Jun 23, 2010

I just want to know that how can I execute a example.sh (script) from command-line like other Unix commands. Please write full procedure

View 4 Replies View Related

Programming :: Execute Commands After Run Command?

Jan 13, 2011

I am executing a run command in a script after that i need to copy files into a directory which are the inputs for the run,on run a new shell is created and the remaining commands in the script does not execute,wot should i do to execute the remaining commands in the script??

View 2 Replies View Related

Programming :: Execute SQLite Db Commands From C++?

Jun 10, 2010

Anyone know how to execute SQLite db commands from C++?

View 1 Replies View Related

CentOS 5 Server :: Can't Execute Some Commands?

May 22, 2009

I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?

View 2 Replies View Related

Ubuntu Networking :: Setup Broadband Connection That Doesn't Require Username And Password?

Jan 11, 2011

I'm using Ubuntu 9.04...How do i setup a broadband connection that DOES NOT require a username and password i tried pppoeconf but it wont let me proceed without entering something in the username and password fields. on XP i jus plug in my Ethernet cable and it works but it doest on ubuntu.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved