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
ADVERTISEMENT
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
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
View Related
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
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
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
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
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
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
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
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
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
Oct 11, 2009
Where is the SUDO file at, and remind me how do I add myself as a SUDO'er?
View 3 Replies
View Related
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
Mar 10, 2011
I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:
I try cd Desktop says that there is no such directory.
I tried /home/me/Desktop same thing.
View 5 Replies
View Related
May 12, 2011
I found a very nice kommander script to run sporttracker, but it won't run. Is there any way to execute kmdr-files under kde 4.5?
View 1 Replies
View Related
Apr 28, 2010
Has anyone had any luck getting a slackbuild to work with the newest version of skype 2.1.0.81? I tried with the static binary but when I go to execute skype I get a segfault. I also tried with a different slackbuild and it doesn't work either.
View 9 Replies
View Related
Dec 16, 2009
Suppose I have a binary program with only execute permission enabled for the current user. How (in general) would I be able to obtain a core dump of the file? I think I have read it somewhere but I want to know if there are more ways of doing it.
View 1 Replies
View Related
Nov 11, 2010
I was thinking of creating a little audio alarm clock with an mp3 and mpg123 to play a song from a cron job each day. How do you specify the time of day to execute a cron job?
View 4 Replies
View Related
May 4, 2010
how can I execute pppoe-start on Slackware during startup or reboot? What is the proper way? Should I add a script on rc.d directory?
View 2 Replies
View Related
May 27, 2011
How do I add a user to be able to sudo?
View 14 Replies
View Related
Oct 22, 2010
Every time I try to execute a .exe file it says
Code:
Failed to execute child process
but when I type wine and the file it says
Code:
bash-4.1# wine
bash: /usr/bin/wine: No such file or directory
View 1 Replies
View Related
Apr 26, 2010
Goggles music manager no longer works in my current install. When I first upgraded, it was complaining about ligtag-extras library not existing, but this was because the version got upgraded. So I recompiled, and now it just segfaults, both with the slackbuild version (0.10.14) and the latest release (0.10.19). Here is dmesg:
Code:
[ 2687.367214] gmm[4366]: segfault at 0 ip 08089bab sp bfad7ef8 error 4 in gmm[8048000+f8000]
View 1 Replies
View Related
Jun 1, 2011
I have been using ubuntu or a derivative distro and perhaps I grew too used to sudo. If it matters I am on Slackware 13.37 and xfce4. I was able to adjust sudoers to allow sudo but I am having difficulties running some progs as root. The biggest concern is trying to start thunar as root. It wont run after sudo, su, or su -l. What am I doing wrong?
View 10 Replies
View Related
Feb 22, 2011
In order to allow me to shutdown my PC from within fluxbox without being root I ran "visudo" and added the following line:
Code:
psionl0 ALL=(ALL) NOPASSWD: ALL
A check that the line had been accepted showed all ok:
Code:
bash-4.1$ sudo -l
User psionl0 may run the following commands on this host:
(ALL) NOPASSWD: ALL
Yet when I tested it out, I got nowhere:
Code:
bash-4.1$ sudo pkgtool
sudo: pkgtool: command not found
bash-4.1$ sudo shutdown -h now
sudo: shutdown: command not found
bash-4.1$
Have I done something wrong or isn't sudo meant to be used this way?
View 12 Replies
View Related
Mar 1, 2010
I edited my "sudoers" file with "visudo". Added the line, after the root privileges definition.
Code:
root ALL=(ALL) ALL
myuser ALL=(ALL) ALL
I try to:
Code:
$ sudo ls /root
[Code]....
View 5 Replies
View Related
Jun 10, 2011
After install TexLive, sudo stop working. If I run sudo:
Quote:
sudo: can't open /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
Edit: Hal and dbus is not working either, if i startx I don't have network manager or automatic mount of pen and disks.
View 10 Replies
View Related
Mar 19, 2010
Does anybody use openshot in Slackware 13? What I made: I modified the slackbuild script for openshot of Slackbuilds.org for version 1.1.1 and then I made the package and installed it. Of course the dependencies too. But when I start Openshot, I get the following error:
OpenShot (version 1.1.1)
Error: OpenShot has not been installed in the Python path.
(Both the site-packages and /usr/share/openshot folders were checked)
Use the following command to install OpenShot:
$ sudo python setup.py install
View 1 Replies
View Related
Sep 15, 2010
The sudo upgrade of 2010-09-15 modified permissions on /var in my systems, both on 32 and 64 bit. (from 755 to 700) My subversion server stops working after the upgrade, you have to restore the old permissions by hand. I don't inspect how, but I've checked it few times...
View 5 Replies
View Related
Feb 4, 2010
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
View 1 Replies
View Related