Ubuntu :: Sudo Broken - No Such File Or Directory
Mar 15, 2010
In Ubuntu 9.10, sudo was working properly except it would not let me run speedy as sudo. I would get an error message, which I believe stated "No such file or directory. However, I could run the command as my regular user (being prompted it needed escalated privileges), and I could run the user as root. So I tried to "fix" it so that I could run it via the sudo command. My fix, in turn, ended up breaking sudo. I edited a file which contained the directories for PATH (I made a backup of said file), and that didn't work. It further broke sudo. So I attempted to restore the backup file, however, sudo was still just as broken.
Now, whenever I try to execute any command with sudo I get:
tim@linux-hp:~$ sudo -i
[sudo] password for tim:
env: -i: No such file or directory
tim@linux-hp:~$ sudo gedit
env: gedit: No such file or directory
tim@linux-hp:~$ sudo apt-get update
env: apt-get: No such file or directory
tim@linux-hp:~$ sudo nautilus
env: nautilus: No such file or directory
tim@linux-hp:~$ sudo update-manager
env: update-manager: No such file or directory
tim@linux-hp:~$ sudo speedy deploy
env: speedy: No such file or directory
I have since upgraded to Ubuntu 10.04 Alpha 3, with mild hopes that the upgrade would remedy my problem, but alas - it did not. How to get sudo back to a working condition?
View 9 Replies
ADVERTISEMENT
Sep 1, 2011
I've had Ubuntu 11.04 installed on my desktop since it's release. Up until an hour ago, it was working fine. I clicked on an update from the update manager, now booting into a graphical mode is completely broken, (the start-up load hangs at 'Check Battery State ... [0k]'). I restarted my computer, and booted into safe mode, and launched the terminal. This all works fine. I then typed :
Code: sudo gdm start into the command prompt, hoping that I would be able to start things manually. Instead, it spat out this: Code:
gdm-binary[230]: WARNING: Unable to load file '/etc/gdm/custom.conf'. No such file or directory.
gdm-binary[230]: WARNING: Unable to find users : no seat-id found.
gdm-binary[230]: WARNING: Gdm Display: display lasted 0.070467 seconds
The last line was printed about 8 times, with slightly different times, before it gave up and failed. Some information which might help, I have Gnome 2, Unity and KDE (not sure which version), installed. My graphics card is the GTX 275, and I have driver the Nvidia driver 275.21. So yeah, I think the update has gone and moved custom.conf somewhere, but I have no idea on how to fix it. I have a graphics programming assignment due on Friday and I would be eternally grateful if I could get this fixed well before then.
View 2 Replies
View Related
Jul 9, 2011
This is the same with git. I'm not sure if any other commands are like this, but I know that both of those commands are installed.
View 9 Replies
View Related
May 12, 2011
I m trying to do a make but get error 2 right away with
Code: $ make: *** /lib/modules/2.6.35.13-91.fc14.i686/build: No such file or directory. Stop. make: *** [all] Error 2 regardless
View 2 Replies
View Related
Nov 2, 2010
I changed my hostname by running sudo gedit /etc/hostname and changing the word there. Then I discovered that hadn't done anything so I used sudo hostname newname. My hostname was changed then but I tried to run sudo gedit /some/thing/else.txt and it said:
Code:
sudo: unable to resolve host newname
No protocol specified
(gedit:5512): Gtk-WARNING **: cannot open display: :0.0 and it says the same with sudo or gksudo for any program that has a gui including synaptic. I can run vi but I have no idea how to use it. I think the problem lies in the lines in /etc/hosts which still say
[Code]....
with the problem being that it still says localhost and my local IP address are ubuntu instead of newname. So if you could tell me how to edit that with vi or some other command line program
View 2 Replies
View Related
Jan 17, 2011
I have a fairly old debian distribution running on the linux Kernel 2.6.18-4-686 and I did something silly which has broken multiple packages. I use the manual package installation command (sudo dpkg -i filename.deb) to install a single package (gcc base) however I did this using the latest version of the package which seems to have broken my GCC package completely and I am unable to compile c++ anymore.
When I now load the Synaptic Package Manager it tells me that I have 10 broken packages and when I use the fix feature it tells me I need to update other packages to fix the depencies (it selects almost every single package on my system to be removed at this point!).
I cant change the system too much because the software packages are set up specifically to run a certain application and I don't want to change anything incase I make it stop working!
So my question is this:
If I go to the synaptic Package Manager and uninstall the broken packages (they are all gcc related), will I be able to use the aptitude command to install GCC again? If so will it automatically install the version of GCC that will work with my system? or will it try and install the latest version and then update the rest of my system?
View 1 Replies
View Related
Jan 2, 2010
Error messege: sudo dpkg configure a' to correct the problem. I used synaptic package manager to install WIne....It stalls on"ttf-mscorefonts-installer (3.0". So, I try update manager and it asked me to restart computer which I do. When I try to re-run synaptic manager I get the above error.
View 2 Replies
View Related
May 5, 2011
I broke sudo when I wrongly edited a file in /etc/sudoers.d in vi(did not use visudo :-().I read that I could fix the same by rebooting into the 'Recovery Mode' by selecting the same from the grub menu.
However I'd earlier disabled the showing of the grub menu by editing /etc/default/grub. As a result I can't seem to go into recovery mode to fix my broken sudo.
View 1 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
Feb 6, 2011
I am trying to get into a directory on my server, that is owned by root.
[Code]....
View 6 Replies
View Related
Aug 10, 2011
Unable to lock directory /var/cache/apt/archives/
Whenever I use sudo apt-get to install my apps in the terminal this pops up when its almost done downloading.
View 3 Replies
View Related
Jan 30, 2011
I want to do the following.
1. have a directory full of subdirectory
2. Pick the first file from every sub and copy that to the main directory and also rename that file to the same name as the subdirectory's name
3. need to work in commandline best is a simple script.
View 4 Replies
View Related
Nov 1, 2010
If I boot on a live-CD, then enter in a terminal the following commands:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /mnt
..does it install Grub-pc in /dev/sda1 ? even if Grub was already installed in /dev/sda1 ? Furthermore, are the 3 above commands equivalent to the below ones ?
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys[code].....
View 4 Replies
View Related
Jan 29, 2011
I am here with a troublesome question about my new Ubuntu set up. Well as I've found out that you have to use the Sudo command to edit anything out side the home directory. Well I am using L.A.M.P. Server on my computer so I can host a small forums. Well for example like lets say I install Word press Blog onto my lamp server and I want to install a theme well when i go to install a theme i can not because WPB can't install the theme because of the security stuff on Ubuntu!
Well I want to know if there is some kind of command or program i can use that will get rid of all the security stuff were i can edit stuff nice and easy. Like something that can give me FULL control over the OS so no more commands because I am going to be running a Vbulliten forums which needs themes and plug ins, well i want be able to install them because this OS will not let me!
View 6 Replies
View Related
Apr 29, 2011
I have a log server that collects logs from all the cisco devices on our network.he company policy states that any logs should only be accessible by root. So I have the following permissions set on the directory, as well as everything inside the directory where the cisco logs are kept.
Code:
drwx------ 65 root root 4096 Apr 29 7:38 rsyslog
The cisco folks are requesting access to these logs, which is allowed by company policy.
[code]...
View 12 Replies
View Related
May 30, 2011
I've done a low level format on them so they're completely empty. When I use them with my windows machines, they're absolutely fine. When I plug them into my Ubuntu machine, there is a hidden directory created called 'RECYCLER' which I'm assuming is for deleted files?However, it also creates a .exe file in this directory called 0x2D9FA278 which has an Icon with an H in it and a comment of 'Facebook Photo' This has the effect of making all the directories on the stick into shortcuts! I googled the file name and it seems to be some sort of Trojan, but I don't understand how it's go into my Ubuntu machine, I've scanned with ClamAV and it finds nothing.
View 5 Replies
View Related
Feb 19, 2010
I downloaded a mouse theme form gnome look and installed it in the themes. But it has not appeared in the pointer themes section in custimation even though it said that it is installed correctly.When I drag the file to install it again it says something along the lines of it cannot copy a directory over a directory.Where can I find where the mouse/pointer theme is located and delete it. I have searched filesystem, google and these forums and not had any luck yet.
View 1 Replies
View Related
Aug 19, 2011
I've run into a problem with my bash program.
Code:a mkdir -p /home/chris/Downloads/ARCHIVE/`date -I` find /home/chris/Downloads* -mtime +14 -exec "cp {} /home/chris/Downloads/ARCHIVE/`date -I` ;
It's meant to move old files from my Downloads folder into an archive file (later tar them). The directory exists, I've used $PWD and nautilus and ls to make sure it's there, yet for every file it gives
Code: find: `cp /home/chris/Download/foo.bar /home/chris/Downloads/ARCHIVE/2011-08-19': No such file or directory I tried to test it on a different destination, specifically my home folder. IT still gave me the error.IS it a bad syntax within find or something else? I'm running a 32-bit system with 11.04
View 4 Replies
View Related
Jun 21, 2011
I get the following error whenever I launch bash:
Code:
mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory
bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory
It seems like it's probably from this part of .bashrc:
[Code]...
What does this code do, why, and what's causing it to go wrong?
View 7 Replies
View Related
Feb 23, 2010
I have this nasty file that eats away my very soul, since I can not remove it.When I try the following I get this output:
Code:
sudo rm -rf 1
rm: cannot remove directory `1': Directory not empty
Code:
ls *
ls: cannot access the filename png: No such file or directory
Code:
[Code]...
View 3 Replies
View Related
Mar 25, 2010
I get this message if i try to use sudo/gksudo. What causes this, how can I solve it? It has been working for years. If i remember correcttly there was a sudo update few days ago, maybe it doesnt work since then, i havent used it in the last few days.
View 9 Replies
View Related
Sep 29, 2010
I am using a headless server with virtualbox installed on it. A second box is a LAMP server from which I have phpvirtualbox installed to give me a remote connection to the headless server. In order to get a connection made between the 2 boxes I need to start a program called vboxwebsrv, this being on the headless box. I therefore need to ssh into the server and startup the program. What I'd like to do is have this program launch on startup, and the folks at phpvirtualbox has a sample script available that will do that. Unfortunately the script uses a su command, not sudo. Since I am using Ubuntu, the su command doesn't work, but using sudo requires a password response. How do I deal with this?
Here's a snippet from the script:
# Function that starts the daemon/service
#
do_start()
{
if [ "$VBPID" != "" ] && [ "$VBPID" -gt 0 ]; then
[code]...
What I currently do is: sudo /usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/null.(The script file sets up the path earlier on).What I don't want to do is have any interaction during startup, and frankly, I can't see how to avoid the password thing.
View 5 Replies
View Related
Dec 24, 2010
Whenever I try to run something as root using the sudo comand I get: Code: ramy is not in the sudoers file. This incident will be reported.
View 6 Replies
View Related
May 15, 2011
My OS is Linux Fedora 11.PC is IBM 1.8 GiB memory, Intel Duo E8500@3.1GHz.The modem I want to install is a USB stick from 'Cell C' the service provider.The code I got from the internet is for Ubuntu. I am new to Linux. When I type the code in at the Terminal, it tells me that Fdeb (my user login name) is not in the sudo file. How do i get my name in the sudo file?
View 2 Replies
View Related
Apr 27, 2011
I need to have regular user run this command sync; echo 3 > /proc/sys/vm/drop_caches
but it requires root privileges that I cannot give.
So I figured they could run the command as "sudo". I looked in /etc/sudoers and wasn't sure what I needed to edit for the users to run the following command
sync; echo 3 > /proc/sys/vm/drop_caches
View 14 Replies
View Related
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
Feb 1, 2010
I am unable to double-click a file of a given type, e.g. .pdf, and have it open in the appropriate application. While some file types have the correct associations, others do not, and I am unable to assign apps for some file types.
An example is Adobe portable document files ending in .pdf. If I right-click on a .pdf in Nautilus, and select "Open with," I get a dialog containing two tabs. One lists applications already associated with that file type, which at present is blank. The other tab seems as if it should allow me to assign an application to that file type, but when I click it, the dialog simply closes suddenly, as if crashing.
What is going on here, and how do I fix it?
(Ubuntu 9.10 64-bit)
View 9 Replies
View Related
Jan 4, 2010
I'm trying to download a file and extract it in one line, but the extracted file is owned by me instead of root even though I'm using sudo:
Code:
sudo sh -c 'wget [URL]'
If I don't try to extract the file, it is owned by root as I expected:
Code:
sudo sh -c 'wget [URL]'
View 1 Replies
View Related
Apr 6, 2010
I would like to open the file manager by command line using sudo, but I just can't remember the name of it!! I can "almost" remember it... but it escapes me. And I am afraid I don't know where to look for it.
View 9 Replies
View Related
Mar 18, 2011
My situation:
Host A: need sudo to access the file
Host B: need sudo to access/overwrite the target file
How to copy a file from host A to host B without creating temporaries? Is it possible?
View 1 Replies
View Related