Ubuntu :: Why Does Aptitude Overwrite /etc/sudoers
Jul 23, 2011
I've been trying for a long while to figure out why aptitude overwrites /etc/sudoers ? Each time I run
$ sudo aptitude safe-upgrade
my /etc/sudoers is reset. This is really annoying because I have it setup so that mythtv can shutdown and restart automatically. The line in /etc/sudoers that gets deleted is:
%mythtv ALL = NOPASSWD: /usr/bin/mythshutdown, /bin/sh, /usr/bin/setwakeup.sh, /
sbin/reboot, /sbin/shutdown
When the line is missing my Ubuntu 10.04 does not shut down at all because of missing rights to do so. Does anyone have a clue why this is happening? I thought /etc-files were sacred for others than root, but it seems I'm wrong. Of course I have edited sudoers with visudo.
View 5 Replies
ADVERTISEMENT
Jul 11, 2010
I am trying to upgrade an amd64 lenny system to squeeze.I've got a 2.6.32 kernel running, done aptitude update and aptitude install aptitude.When I try "aptitude safe-upgrade", it sits forever resolving dependencies.it seems to search with the resolver counting up more and more open/conflict/ whatever.I stopped it once it got over 100,000)Is it possible to get aptitude to do a safe-upgrade, perhaps using a command line option?
View 2 Replies
View Related
May 31, 2011
I have tried several things to attempt to fix my sudoers file however it is still coming up with errors. The error says
[code]...
the sudoers configuration file is set to the default as I have ran a dpkg on it, have also uninstalled and reinstalled it, and went over the configuration file ensuring it looked like the defaults I had seen online.
View 8 Replies
View Related
Jul 9, 2011
i have a duel boot of windows and ubuntu, but recently i got a virus, but this things is leach like in appearance. I tried reinstalling windows, then reformatting the drive and reinstalling windows but i still have this same virus? This is dead creepy for me because windows cant read any of the other partitions, which are all formatted for linux, in formats which windows does not have the capability to read. So i dont understand how this could have happened. There are many things that i am still to try -- including completely overwriting the MBR with a GRUB in case the virus somehow resides in there?? But i have decided to give up on windows from now, because, despite all the actions i have taken, it has failed me repeatedly. But having had these viruses 3 times, i have noticed something, the first time i had a virus was my fault, because i left my computer insecure.
After i formatted my HDD following that virus, i noticed i had 10gb of space robbed from me, disk utility believed i had a 160gb drive, but Gparted and everything else told me that i only had 149.7gb of space??? now after this virus - which logically couldn't have happened without someone directly attempting to tunnel my computer as i had so much extra security - i lost 6gb of space from my HDD?? Sounds odd?
THE QUERY: So i want to know if (from ubuntu) it is possible to do a secure format (similar to with a mac - were it completely overwrites everything, instead of just deleting the links) although, possibly i am not going back to windows, ever.
View 9 Replies
View Related
Aug 13, 2011
today when I tried to update my system, this message appeared. Code:E:var/cache/apt/archives/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb: trying to overwrite '/etc/xul-ext/ubufox.js', which is also in package xul-ext-ubufox 0I can't understand the effect of this on the system or how can I fix it.
View 4 Replies
View Related
Mar 18, 2010
I want to know if it is possible to install Windows XP inside of Ubuntu 9.10 and delete Ubuntu. I want to make this netbook dual boot and I know I need to have XP installed first to make the process easier.
View 9 Replies
View Related
Oct 14, 2010
Is it possible to have Nautilus stop prompting me to confirm file overwrites when copying files? This would be very practical (with the obvious risk, but still). I have not been able to find this somewhere...
View 1 Replies
View Related
Apr 24, 2011
I've got a netbook which dual boots ubuntu and windows xp using grub legacy. Now I'd like to overwrite my current ubuntu 10.04 installation with a brand new 11.04. Grub is my main preoccupation: I'm worried installing 11.04 over the old installation may cause quite a mess due to the two grubs not going along well. Is it safe* to overwrite the older ubuntu installation with the new using the "traditional" bootable USB method?
*safety includes windows accessibility and data preservation.
I don't really understand how does grub work.
View 2 Replies
View Related
Jan 23, 2011
I have been working on this script and I just made a ridiculous error. I tried to move my script out of my home directory and for some reason I put in "mv myscript .bashrc" Now my .bashrc file has nothing but my script in there... I think I may have overwritten some important info. Is running cp /root/.bashrc ~
View 2 Replies
View Related
Jun 12, 2010
In a nutshell: sudoers is not designed to use 127.0.0.1
Old, broken sudoers:
Code:
New, fixed sudoers:
Code:
View 7 Replies
View Related
Mar 25, 2011
I changed my user name, and now the Terminal shows my new user name.I log in with the same user name and the same password. But after changing the username, I can't get anything done as sudo. It says that I am not in the sudoers file, and I can't get in at all. I tried sudo visudo, sudo -i, sudo -l..When, I wrote sudo -l the following came in the Terminal.How do I get into sudoers file and give my new user name ariya the root privileges. Even my old user name doesn't work at all.
View 9 Replies
View Related
May 26, 2011
How to use cp command without to overwrite target file permissionsFor examplecp /tmp/file /home/fileI dont want to change chown and chgrp on /home/file
View 2 Replies
View Related
Feb 25, 2011
I have this deb from a package in unstable...
It calls for libhdf5-openmpi, which is not compatible with libhdf5-serial which in turn is used by several packages that i have installed...
It's either the serial or the openmpi version... not both.
Since this specific package from sid calls for this dependence, which way do i have to check that if i override dependency checking it wont overwrite anything along the way...?
All other dependencies can be met... except this particular one...
And i wont be using the functionality that calls for openmpi...
View 7 Replies
View Related
May 12, 2010
I've used gconf-editor to disable the "show_desktop" feature of Nautilus to get multiple wallpapers to work, but now want my icons back. But I can't:
Code:
warnec@lucidL:~$ LANG=C sudo gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop 'true'
Error setting value: Can't overwrite existing read-only value: Value for `/apps/nautilus/preferences/show_desktop' set in a read-only source at the front of your configuration path
It does neither work with gconf-editor. It says this key is "protected from writing"
View 3 Replies
View Related
Jun 21, 2010
I have been running a dual boot XP and Ubuntu 8.04 on two separate hard drives for a while now without any problems. I used the method posted http://ubuntuforums.org/showthread.p...light=dualboot. I will be upgrading to 10.4 soon (probably after the re-spin in July) and was wondering if I will have problems after upgrading dual booting.
I do not know if while upgrading Grub remains or if Grub2 tries to overwrite. I have read that Grub2 will try to install onto all partitions and hard drives in a fresh install but do not know about upgrading. If it does try I think I need to put it in hda,1 which is the primary drive where Ubuntu is located.
This is not something I have been able to find the answer to with google. I also have Kubuntu on the system which I can change with session manager and am not sure what will happen to that once I upgrade Ubuntu.
View 1 Replies
View Related
Jul 28, 2010
I'm getting some funny behavior from ffmpeg when I'm trying to increase the volume of an mp3 file and have it overwrite itself. For example, if I execute the following command:
Code:
ffmpeg -i name.mp3 -vol 1024 -y name.mp3
it will code the first 5 seconds or so and then quit with:
Code:
[mp3 @ 0x2db16d0]incomplete frame
Error while decoding stream #0.0
[Code]....
View 1 Replies
View Related
Aug 15, 2010
I'd like to put my new Dell desktop (Ubuntu 10.04 Desktop) on my home network in place of an old PC running Windows XP and acting as host for the network and server for printers, etc. Is the Server version required for this, and if so, can it install easily over the Desktop version?
View 2 Replies
View Related
May 19, 2011
i can upload and download things from/to my ftp server but when i want to Overwrite a file it shows me that:
PHP Code:
error 550 server.cfg: Overwrite permission denied
What can i do i gave premmision to download and upload so whats the problem
View 1 Replies
View Related
May 28, 2010
I have accidentally deleted the contents of sudoers file (while trying to add a line through CLI).Anyway, I'm still logged in and can please someone paste me the default contents of the sudoers file on Lucid Lynx
View 3 Replies
View Related
Jun 5, 2010
A few minutes ago I accepted a suggestion from update-manager for restarting my system, such that some security updates could be effective. After restarting and login in as usual, I discovered that I could not use my adminstrative rights as a sudoer. To recover them I booted again, as root, and added my username in the "admin" group. Rebooting, all seemed well again. As an extra check I installed and ran 'chkrootkit' and nothing suspect was found.What could have hapenned? Just a glitch in the system? Can a user disappear from a group for nothing?What further checks can I make to be sure that my system is safe?I'm using Ubuntu Jaunty Jakalope amd64, with kernell 2.6.28-15-generic.
View 5 Replies
View Related
Feb 15, 2011
How do I add user xyz to sudoers?
View 1 Replies
View Related
Feb 16, 2011
I edited my /etc/sudoers file the other day to add timestamp_timeout=0 to cause sudo to ask for a password every time. I used visudo in sudo mode and when it came to saving it appeared to want to save the file as sudoers.tmp so I edited this to sudoers. Anyway some how may edit failed. I booted up into terminal and reedited and somehow lost all access to the sudo mode. I think the file ended up with the wrong permissions.
After a fresh install I don't want to mess this up again. So please, please tell me how to save it. Should I save as sudoers.tmp or sudoers? I presume a could have made a typo, but am assuming not. I don't want to reinstall ubuntu and all the packages again.
View 4 Replies
View Related
May 16, 2011
I want to create a group called scripts, add www-data to that group. I then want to edit the sudoers file and tell it that the script group doesn't need a password. Where should I put this line excatly in the sudoers file?
View 2 Replies
View Related
Jul 15, 2011
I have a bit of a problem... I thought (for certain reasons) I would just add myself to root group and therefore gain some more rights for my account. I could sudo before... But once I gained the root group as a secondary group it says I am not in the sudoers file anymore...
Code:
id
uid=1000(kosta) gid=1000(kosta) groups=0(root),1000(kosta)
Code:
sudo ls
[sudo] password for kosta:
kosta is not in the sudoers file. This incident will be reported. It is really weird and messed up. I can view sudoers file but not edit it... I can cat passwd but I can not view syslog. Is there any way to fix this without having to reboot to recovery mode? And why the heck is this happening after all?
View 2 Replies
View Related
Nov 3, 2009
I'm following this guide : [URL]... to monitor SIP-connections on an Asterisk-server with Nagios. At some point the author mentions adding the following line to /etc/sudoers : nagios ALL= NOPASSWD: /usr/sbin/asterisk
View 8 Replies
View Related
Mar 6, 2011
I've modified by mistake my menu.lst file. Both menu.lst and grub.conf are empty. how to fix this? Is there any command to quickly rewrite those files?
View 2 Replies
View Related
Mar 8, 2011
I try to write to a file "date > file" but Linux says 'cannot overwrite existing file'. I tried chmod 755 but still cannot write to the file. What should I do?
View 2 Replies
View Related
Jan 18, 2010
there's a command to overwrite a directory.
View 6 Replies
View Related
Apr 15, 2011
I run a command in a Linux terminal, the result was written to the desied folder. After I modified the command and rerun it. The old files are still there and not overwritten at all. Only it is successfull after I deleted the old files and run the command.
View 3 Replies
View Related
Feb 22, 2011
I have a Debian OS installed (6.0), installed on a single partition, which was running out of space. So I copied all the data in /home to a spare partition, then edited fstab to mount this new partition as /home.
This works fine. But now of course I have the /home data both on the new partition (the one that is now being mounted and used), and also still on the original partition, though this directory is no longer mounted by the OS, so I can't directly 'get at' the data to delete it.
I could easily get into the partition from another OS and delete the unneeded /home data of course but I was just wondering; as this data is no longer 'seen' by the OS, will it be overwritten automatically by the OS when it needs more space, as it does with data that has been deleted from the filesystem, or would it be reserved somehow, still using up space?
View 6 Replies
View Related