Debian :: Sudo Apachectl Will Not Execute?

Oct 1, 2010

I finally got my path to save so apachectl is in my path. I can execute apachectl start as a regular user, although the server wont start because there is some sort of lock. When I sudo apachectl start , I get sudo: apachectl:command not found. My visudo file looks like this:Defaults env_keep += "PATH"

User_AliasOWnER=blake
root All=(ALL) ALL
OWNER ALL= NOPASSWD:ALL

View 14 Replies


ADVERTISEMENT

Debian :: Autologin And Update / Without The Password(s) / Su/sudo To Execute?

Oct 28, 2010

I have succesfully installed Debian with gnome-core, iceweasel and other useful packages and also followed this guide to autologin and start X. I noticed that the sudo chmod +s /sbin/halt and adding /sbin/halt
in ~/.bashrc made Debian refuse me to log out (from X) and 'log out' turns off the computer insted.Removing /sbin/halt from .bashrc turned everything to as i want it. Should I "repair" or remove something I created with chmod +s command or should I leave it as it is?

Also I would like apt-get(or aptitude) update to run after login (and before startx), so i added sudo apt-get update to .bashrc but it will prompt me with password. Is there someway I could do this without the password(s) which su/sudo needs to execute? This is not so important but it would be very nice to update the system on startup.

View 5 Replies View Related

OpenSUSE :: Can't Execute Some Command With Sudo?

Nov 29, 2010

I would like to have an user that can execute al command with sudo.I configured sudo with yast2 and in the sudoers file actually there is a line with:USER ALL = (ALL) ALLWhere user is my username.But I can't use some command like ifconfig becouse it say that it can't find the command. I think that this is becouse of path, but shouldn't i get root path using sudo?

View 3 Replies View Related

General :: Execute A Command After Sudo?

May 4, 2011

I am working in a CentOS environment with numerous CentOS machines. Currently there are multiple developers that each have their own login/home directory and then for various admin tasks we all share a single super user account.

The problem

I have a number of aliases, variables, functions, and settings that exist in my personal login's .bash_profile. None of these are available in the shared super user's .bash_profile. My current work around is that everytime I sudo in as the super user and I re-execute my .bash_profile from my personal user's home directory. I am not allowed to edit the init stuff for the super user

The Question

Is there any way I can automate my sudo sequence such that it will execute my personal .bash_profile after I've executed sudo without requiring me to edit the super user's bash init stuff?

View 3 Replies View Related

Slackware :: Cant Execute File In /bin With Sudo?

Dec 28, 2010

I've created a firewall with iptables rules and saved them into my bin directory (then changed them to executable) However i cant use "sudo firewall-start" it just prints a whole heap of garbage. When i use the "sudo firewall-start" command as root, it works perfectly. Im sure there's a simple solution to this problem, but cant seem to find one in the forums.

View 5 Replies View Related

General :: Execute Root Command Without Sudo?

Jan 24, 2010

On my ubuntu I have a command pm-suspend, which puts the computer to sleep. It has to be run with sudo. Since it is inconvenient to be forced to type the password every time I want my computer to sleep, I thought maybe there's a way around it. Naively I thought that if I'd create a script as root, that invokes pm-suspend, and then let anyone execute that script, I could run that script as my own user and then that script would be considered run by root and hence be allowed to run pm-suspend. Obviously that didn't work. The root-check procedure in pm-suspend still found out that the original executor was someone different from root.

Still I think something similar (although slightly more elaborate) should work.I'm thinking about the process that allows the user to mount hard drives for example. Normally root is required, but it is somehow bypassed by the gnome utility mounting.

View 8 Replies View Related

General :: How To Allow User To Execute All Commands Without Sudo

Apr 30, 2010

Customer asked me to create a menu for linux he also asked me to do this: Open like a command like where a user can execute commands...so for this the users have sudo enabled. The code below works OK. But it has an issue when a command is executed but the command does not need sudo

Like for instance
Code:
cd /
sudo: cd: command not found

How can I allow a user to execute all commands when a command does not need sudo
Code:
echo -e "Press Control+C to finish"
#echo -e " "
while true;
do
read whichcmd?"Insert Command: "
sudo $whichcmd
done

View 3 Replies View Related

Ubuntu :: Sudo - Disable Confirmation And Simply Execute Command

Aug 5, 2010

In Ubuntu, When I type sudo and hit enter, the new command will appear on the command line, instead of simply executing. This is different from other operating systems I've used, such as older ubuntu's, mac osx and debian. Is there a way of disabling this confirmation and having it simply execute the command?

View 3 Replies View Related

Ubuntu :: Allow A Specific Group On Machine To Execute One Command With Sudo?

Aug 22, 2011

I'm trying to allow a specific group on my machine to execute one command with sudo without requiring a password, so what I want to do is add something like this to sudoers:

%groupName ALL = (ALL) NOPASSWD: /bin/bash /path/to/shfile.sh argument1 argument2

argument1 needs to be a url : http://subdomain1.subdomain2.domain.com

argument2 needs to be a path of the form /var/www/demo/SomeFolder/application/config/config.php

How do I put in a regex form that sudoers will understand ? I tried reading the sudoers manual, but it didn't help a lot .

View 1 Replies View Related

General :: Setup A System To Allow Normal Users To Execute A Command Without Using Sudo?

Jan 5, 2011

I am trying to setup a system to allow normal users to execute a command without using sudo. Is this possible?

View 6 Replies View Related

General :: Can't Execute Commands As Sudo Nor Access Sudoers File In Mandriva 2010.1

Aug 16, 2010

since a recent upgrade to Mandriva 2010.1 I am not able to 'sudo' as administrator or when I use the 'root' password. I am the only user on this machine (Dell Inspiron 530S multi-booted with Window's Vista Home Premium, Ubuntu 10.4, and Mandriva 2010.1). I can get into the 'Manage Users' section of the control center by authenticating as 'root' but I can't access 'sudoers file' from command line.

View 4 Replies View Related

Red Hat / Fedora :: Sent The Apachectl File To Acapche2 Instead Of Apache2?

Jan 5, 2011

I am working on Apache2, and am up to the 'test' phase of the process. I accidental sent the apachectl file to acapche2 instead of apache2:

[rootlocalhost sbin]# mv apachectl /acpache2
I should have done: mv apachectl /usr/local/apache2/bin
That didn't happen..
I echoed ; echo ./apachectl
./apachectl

Sooo, I know its alive, just have no idea where, help? I need to get this file back to start the HTTP Sever.

View 4 Replies View Related

Ubuntu :: Make Sudo Act More Like The Debian Sudo?

Jul 2, 2011

I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password

View 8 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

General :: Difference Between Restarting/stopping Apache Using 'service Httpd Restart/stop' And Apachectl Restart/stop

Oct 11, 2010

whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?

View 1 Replies View Related

CentOS 5 :: X/Gnome Takes Long Time To Load And Sudo Takes Long Time To Execute

Oct 13, 2009

I am running Centos 5.3. I ran no updates, performed no installs, nor changed any configuration immediately prior to this issue. My problem is this: when I run the command startx (default runlevel 3), it is a long time (5-10 minutes) before Gnome startx, and once it does start applications will not run. Also, when I try to use sudo (from any environment, even ssh), it is a long time (5-10) before the command is executed.

I cannot say for sure, but it seems like this is an intermittent problem. Sometimes X takes a long time to start, but once it starts it will launch programs. Sometimes X takes a long time to launch, but once it starts it will only launch certain programs. Though presently X always takes a long time to start, and I cannot successfully launch any programs.

A while back a had a similar problem to this (x taking long time to start, sudo taking long time to execute) and it ended up being a DNS problem. Unfortunately, I cannot remember exactly what it was and I stupidly did not document it. Maybe this is also DNS related, I don't know.

I don't know what log files to look at for problems with X, Gnome, and sudo taking a long time to start.

View 19 Replies View Related

Debian :: How To Run Execute Command In Terminal

May 4, 2010

i have one executable file (filename : "tet"). i can run this command in other linux os like: "fedora, cent os" using command "./tet", and it's working fine. but this command not working in debian. i don't know how to execute this file.

1. i have tried with 755 and 777 permission
2. i have tried "home/fullpath/tet"
3. i have tried "/tet"
4. i have tried "./home/fullpath/tet"

but above all commands are failed. to run this execute file

View 10 Replies View Related

CentOS 5 :: Can't Execute Things In /tmp Now But Is There A Way To Execute Only One File And No More?

Feb 17, 2011

i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???

View 1 Replies View Related

Debian Configuration :: Unable To Execute Aclocal For PHP 5.6.10

Jun 22, 2015

OS: Debian 8.1
Php: 5.6.10
Apache: 2.4.12

My question is I trying to install php5 and add mcrypt,, but it is unable to run "aclocal" command. It show this message.

I have check with the path of /etc/profile, I'm sure that I have added the path as below. Beside that, before "aclocal" command I able to run another command which is "phpize". It is able to run successfully, after I added the path as below...

View 2 Replies View Related

Debian Programming :: Execute System Command Using Qt

Feb 19, 2014

I was writing code to execute system command, using GDM3 an logged in as root (just commented line #auth required

pam_succeed_if.so user != root quiet_success , in /etc/pam.d/gdm3).

When i execute:

Code: Select allvoid criarWindowsDialog::on_pushButton_2_clicked() {
    ui->commandTextEdit->append("Processo iniciado ...");
    QProcess processo;
    QString comando;
    QStringList args;
    QString fullCommand;
    QString stdOut;
    QString stdError;

[CODE]..

View 0 Replies View Related

Debian :: Server Delay To Execute Commands?

Sep 1, 2010

I have debian lenny, when I run an application is slow to load (example: iceweacel open and it takes, I can hold him iceweacel work normally), I tried to change from gnome to another and the same thing, went down some services (samba, squid) and nothing. I open a terminal and it takes, I want to duplicate it and do it fast. From a terminal without X (tty1) with root run mc and moves quickly, also run as root "sudo mc" and takes to boot.Any action done with sudo it takes to run.Can not be what it takes to make starting the applications, not the PC because it is new, and from one moment to another I began to pass this

View 2 Replies View Related

Ubuntu :: Sudo Ifconfig Eth0 Down Vs Sudo /etc/init.d/networking Stop

Jun 10, 2010

explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?

Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop

View 3 Replies View Related

Software :: Pam_start Error 26 \ Use Sudo Su And Add An Account To A Group What's Allowed To Use Sudo?

Jan 2, 2011

I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:

Code:
ldd /usr/bin/passwd
and

[code]....

View 4 Replies View Related

Debian :: How To Remove Sudo

Jun 6, 2010

I want to remove sudo so may existing user can only use su.But sudo is associated with dependence`s gnome and many more.How to remove damned thing Can i just remove sudo and then reinstall those 14 package`s, will this work ?

[18:21:47]madone~ $ sudo aptitude purge sudo gksu
Reading package lists... Done
Building dependency tree       

[code]....

View 8 Replies View Related

Fedora Security :: Cannot Open /var/db/sudo After Sudo Package Upgrade?

Sep 16, 2010

A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.

View 1 Replies View Related

Debian :: Execute Files With Sh Scripts From Context Menu

Apr 5, 2016

So I made two shell scripts under /usr/bin/ (would've preferred under ~/bin, but I couldn't get it to add that folder to the path, even when appending it to ~/.bash_profile), named 'Wine' and 'Wine64', each containing something like this:

Code: Select all#!/bin/bash
FILE1=$1
WINEARCH=win64 WINEPREFIX=/home/##/.wine64/ /usr/bin/wine64 $FILE1

So basically it's a script to automate the switching between wine architectures and to set the proper prefix path. While this works fine when launching an application from a terminal, say:

Code: Select all$ Wine64 some-windows64-app.exe

I can't get it to work when right clicking the said executable, and opening it with Wine64 (which I previously added it as a choice in the context menu) So is there something I'm doing wrong, or is this not possible at all? In the latter case, is there any way to achieve this through other means?

I'm doing it this way as I'm installing this system for a relative that isn't that knowledgeable with Linux (so I would like to avoid instructing them how to launch commands in a terminal), but would still like to offer him a Windows compatibility layer for the odd Windows-only app that he might need.

View 6 Replies View Related

Debian :: *.desktop File To Make Execute Start.sh?

Dec 17, 2010

Can i make a .desktop file taht it executes autostart.sh script or any other script?
like xmonad.desktop od dwm.desktop?so that when gdm or any other gui login manager loads autostart apps in xmonad?

View 4 Replies View Related

Debian :: Use Screen To Execute A File With A Certain Session Name Instead Of Just Numbers?

Feb 11, 2011

I'd like to use screen to execute a file with a certain session name instead of just numbers... or at least have a more permanent name, I'd like to be able to use it all in one command though. So I can put it into a script.Also: is there a way I can remove or change what comes up at the debian login screen so instead of debain 5.0 I can make it say something else? Also when I login the message that comes up is a little annoying, is there a way I could remove or change that too?

View 7 Replies View Related

Debian Multimedia :: Can't Run Mojosetup - Unable To Execute SH File

Dec 7, 2015

I'm not so expert using Debian (3.2.68), especially when it comes to install stuff... I tried to execute for the first time a *.sh 451mb file, but it displayed that:

Code: Select allroot@Poulpe:/home/ambroise# sh gog_hatoful_boyfriend_2.0.0.2.sh
Verifying archive integrity... All good.
Uncompressing Hatoful Boyfriend (GOG.com) 100%
Collecting info for this system...
Operating system: linyx
CPU Arch: x86_64
trying mojosetup in bin/linux/x86_64
USING

PANIC
    Initial setup failed. Cannot continue.

Error: Couldn't run mojosetup

It seems that mojosetup is an open software included for all recent GOG games, but maybe it can't run on Debian ? Or could it be more a directory issue ?

View 4 Replies View Related

Debian :: Execute Vino-server At Boot Time?

Mar 11, 2010

how can i execute vino-server at boot time, before my graphical login prompt (gdm ?) appears

View 1 Replies View Related







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