Ubuntu :: Can't Remove File With Sudo?

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


ADVERTISEMENT

Ubuntu :: Removing The Firefox (after Sudo Apt-get Remove)

Oct 12, 2010

I sudo apt-get removed Firefox from my system in favor of Google Chrome. However, Ubuntu still prompts me to upgrade Firefox. How do I stop that? Also, whenever I click on HTML files, Firefox is still the one that loads by default. How can that be if I've sudo apt-get removed it? And Firefox is still in my Applications->Internet menu... So, was my sudo apt-get remove successful?

View 1 Replies View Related

Fedora :: Where SUDO File At / Add Myself As A SUDO'er?

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

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

Ubuntu :: Sudo Apt-get Remove Gnome Session Errors

May 30, 2011

This is the error I get when removing gnome-session:
alex@alex:~$ sudo apt-get remove gnome-session
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
ubuntu-desktop : Depends: gnome-session but it is not going to be installed
Recommends: banshee-extension-ubuntuonemusicstore but it is not going to be installed
Recommends: gnome-accessibility-themes but it is not going to be installed
Recommends: ubuntuone-client-gnome but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

And this is what happens when I do apt-get -f install:
alex@alex:~$ sudo apt-get -f install
[sudo] password for alex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done

The following package was automatically installed and is no longer required:
xulrunner-2.0-mozjs
Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:
gnome-session
Suggested packages:
desktop-base

The following packages will be upgraded:
gnome-session
1 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
Need to get 0 B/11.8 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 250821 files and directories currently installed.)
Preparing to replace gnome-session 3.0.1-0ubuntu1~build2 (using .../gnome-session_3.0.2-0ubuntu3~natty1_all.deb) ...
Unpacking replacement gnome-session ...
dpkg: error processing /var/cache/apt/archives/gnome-session_3.0.2-0ubuntu3~natty1_all.deb (--unpack):
trying to overwrite '/usr/share/xsessions/gnome-shell.desktop', which is also in package gnome-shell 3.0.1-0ubuntu1~build1
Errors were encountered while processing:
/var/cache/apt/archives/gnome-session_3.0.2-0ubuntu3~natty1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

View 9 Replies View Related

Ubuntu Security :: Remove 'sudo' Via The Software Center?

Jul 10, 2011

I've installed Ubuntu via UNetbootin from USB on my child's computer. It comes by default with the sudo command which I find really annoying to work with. I'd rather have my su command.

Now, while googling for a removal instruction, I've read that the sudo command is tied to system functions on some Ubuntu live systems and can't be removed easily. Does anyone know if this applies to the 10.04 live version used by UNetbootin and how to work around this problem?

If not, is it simply enough to remove 'sudo' via the software center? I find many tutorials on how to switch from su to sudo but not much about the other way around.

View 7 Replies View Related

Ubuntu :: Use Sudo Apt-get Autoremove Will Remove All The Mentioned Packages Including Freemat

Aug 21, 2010

From the terminal I got this message: The following packages were automatically installed and are no longer required: libqt4-opengl freemat freemat-help libgfortran3 libsdl-ttf2.0-0 libmikmod2 libqt4-svg libblas3gf libamd2.2.0 libsdl-mixer1.2 libumfpack5.4.0 freemat-data libsmpeg0 Ok, what I really don't understand is that why is it that Freemat, my most important software, is listed as "no longer required"? Of course if I use sudo apt-get autoremove will remove all the mentioned packages including Freemat.

View 2 Replies View Related

Ubuntu :: Sudo Apt-get Install Chromium - 0 Upgraded 0 Newly Installed, 0 To Remove And 0 Not?

Oct 10, 2010

ran sudo apt-get install chromium, it seemed to install, i closed terminal, couldnt find it under apps, ran the command again, and am now getting this? sudo apt-get install chromium chromium is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

View 3 Replies View Related

Fedora :: Remove The Sudo Command Software Packages Without Damaging My System?

Apr 2, 2010

Remove the sudo command software packages without damaging my system?

View 9 Replies View Related

Ubuntu :: Clean Old Kernel "sudo Apt-get Remove Linux-image-2.6.32-29-generic"

Mar 18, 2011

i use the command to get the infomation of my linux kernel; sudo dpkg --get-selections|grep linux use this cmd to delete the old kernel sudo apt-get remove linux-image-2.6.32-29-generic but i forget --purge that cause zhe following item show like this linux-image-2.6.32-28-generic deinstall

View 1 Replies View Related

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

Ubuntu :: Sudo: User Is Not In The Sudoers File

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

Ubuntu :: How To Use Sudo In A Startup Script File

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

Ubuntu :: Sudo - Ramy Is Not In The Sudoers File

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

General :: How To Get Name In Sudo File?

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

General :: Edit The Sudo File?

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

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

Ubuntu :: Sudo WGet Piped To TAR Has Wrong File Owner

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

Ubuntu :: Open The File Manager By Command Line Using Sudo?

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

Ubuntu :: Secure Copy: Overwrite Remote File With Sudo?

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

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

Fedora :: Edit Sudo Config File

Mar 3, 2011

edit the sudo config file to allow my account to use some commands as a root.so can someone advise me how should i do it.

View 3 Replies View Related

General :: Input To Sudo - What Is Its File Descriptor

Aug 5, 2011

Where does input to sudo go? I mean when we give password to sudo prompt where it actually goes? If it goes to a file what is its name or what is its file descriptor?

View 1 Replies View Related

General :: Remove Write-Protected File - Will It Actually Delete The Password File?

Jul 30, 2010

When I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?

View 1 Replies View Related

Ubuntu :: Sudo Aptitude Install Fbpanel / Can't Find Config File

Jul 9, 2010

I installed fbpanel with sudo aptitude install fbpanel, but I can't find the config file. according to the readme it's suppose to be under ~/.config/fbpanel/default, but it's not there. Where else can it be? I did a whereis fbpanel and it's located in a few areas, but no default config file is there!

View 3 Replies View Related

Ubuntu :: Creating A Text File To Start Up Sudo Bash Without Going To The Terminal?

Feb 26, 2011

I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.

View 2 Replies View Related

Software :: Check The Contents Of A Text File For A Specific String And Remove It From The File From The Command Prompt?

Oct 14, 2010

I want to be able to check the contents of a text file for a specific string and remove it from the file from the command prompt. I would basically be searching through a number of files and if a specific string is found I would like it removed automatically. pretty much a find and replace, were the replace is nothing. any one got any ideas on how you would do this. I already have the search part sorted just need to be able to remove the string I don't want from the multiple files.

View 4 Replies View Related

General :: Why Is My Sudo Generated File Owned By Root?

Jul 9, 2010

When I run '# sudo touch newfile' my expectation was that the file would be owned by me, not by root, as my understanding of sudo is that it is giving me, the user, root priviledges but does not actually switch the user.Do I have a fundamental misunderstanding of what sudo is about?

View 4 Replies View Related

General :: Sudo In .desktop File When Launching Graphical App

Feb 8, 2011

Fedora 14 i can run a program with another user with:

But:

it doesn't work, if i put the command in a .desktop file.

View 1 Replies View Related

Debian :: Sudo Results In Strange File Owner

Mar 16, 2010

I like the "Ubuntu" sudo philosophy and wanted to setup this sudo the same way on my Debian system. I was happy when I found that I just have to do the following:
-create a group 'admin'
-adduser christian admin
-visudo
-add the line: %admin ALL=(ALL) ALL

Then I tried sudo rm -rf / to check if sudo works. All worked fine. No, seriously, I can move around files that belong to the root and such, so sudo somehow works. But when creating new files with sudo, like e.g.
tar xzf myZippedTarball
these files belong to user 41034 and to the group users instead of root root:
drwxr-xr-x 7 41034 users 4096 2009-11-01 01:07 libsvm-2.9
Certainly, this is not the way I want to have. The user 41034 doesn't even show up in /etc/passwd...

View 2 Replies View Related







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