Active Topics

 


Reply
Thread Tools
misterc's Avatar
Posts: 1,625 | Thanked: 998 times | Joined on Aug 2010
#11
uninstall sudoer and install rootsh instead
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#12
Originally Posted by kyllerbuzcut View Post
/home/user # ls -l /etc/sudoers.d/bluetooth-pan-tethering.sudoers
ls: /etc/sudoers.d/bluetooth-pan-tethering.sudoers: No such file or directory
/home/user # cat /etc/sudoers.d/bluetooth-pan-tethering.sudoers
cat: can't open '/etc/sudoers.d/bluetooth-pan-tethering.sudoers': No such file or directory
/home/user #


curioser and curioser. I can navigate to that very file if I just type mc and can even view and edit it in midnight commander. it's definitely there.
Interesting - could be some filesystem corruption. Try:
Code:
ls -l /etc/sudoers.d
 
Posts: 345 | Thanked: 117 times | Joined on Jan 2010 @ uk
#13
misterc i already have both and I would uninstall then reinstall if I could.


result from that command rob1n



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ ls -l /etc/sudoers.d
-rw-r--r-- 1 root root 1276 Apr 17 2009 01sudo
-rw-r--r-- 1 root root 58 Mar 20 12:36 CSSUfeatures.sudoers
-rw-r--r-- 1 root root 73 Aug 14 2010 applocker.sudoers
-rw-r--r-- 1 root root 117 Aug 24 22:13 bluetooth-pan-tethering.sudoers
-rw-r--r-- 1 root root 41 Feb 21 2010 bootscreen.sudoers
-rw-r--r-- 1 root root 126 Jul 8 21:56 cleven.sudoers
-rw-r--r-- 1 root root 53 Jan 18 2011 community-ssu.sudoers
-rwxrwxr-x 1 root root 90 Apr 18 22:08 cssutransitionstuner.sudoers
-rwxrwxr-x 1 root root 180 Apr 19 10:14 customizer.sudoers
-rwxr-xr-x 1 root root 64 Sep 29 2010 fapman.sudoers
-rw-r--r-- 1 root root 317 Aug 24 23:14 filebox.sudoers
-rw-r--r-- 1 root root 35 Jan 6 2010 fmboost.sudoers
-rw-r--r-- 1 root root 299 Mar 29 2010 hildon-application-manager.sudoers
-rw-r--r-- 1 root root 46 Feb 22 2010 hildon-control-panel-personalisation.sudoers
-rw-r--r-- 1 root root 200 Nov 12 2009 hildon-input-method-configurator.sudoers
-rw-r--r-- 1 root root 54 Aug 10 2010 kernel-power-flasher.sudoers
-rw-r--r-- 1 root root 54 Aug 22 13:14 kernel-power-flasher.sudoers.dpkg-new
-rw-rw-r-- 1 root root 47 May 2 2010 kernel-power.sudoers
-rw-rw-r-- 1 root root 47 Jul 27 16:13 kernel-power.sudoers.dpkg-new
-rwxr-xr-x 1 root root 190 Sep 7 2010 libliqbase.sudoers
-rwxr-xr-x 1 root root 190 Jul 31 12:23 libliqbase.sudoers.dpkg-new
-rw-r--r-- 1 root root 75 Feb 17 2010 mafw-dbus-daemon.sudoers
-rw-r--r-- 1 root root 100 Aug 28 2010 nitdroid-installer.sudoers
-rw-r--r-- 1 root root 231 Apr 13 2010 nm-avahi.sudoers
-rw-r--r-- 1 root root 99 Apr 13 2010 nm-bt-connect.sudoers
-rw-r--r-- 1 root root 78 Apr 13 2010 nm-bt-setup.sudoers
-rw-r--r-- 1 root root 41 Apr 13 2010 nm-ifaces.sudoers
-rw-r--r-- 1 root root 51 Apr 13 2010 nm-internet-setup.sudoers
-rw-r--r-- 1 root root 30 Apr 13 2010 nm-ip.sudoers
-rw-r--r-- 1 root root 331 Apr 13 2010 nm-samba-setup.sudoers
-rw-r--r-- 1 root root 390 Apr 13 2010 nm-sbrsh-setup.sudoers
-rw-r--r-- 1 root root 97 Apr 13 2010 nm-udhcpd.sudoers
-rw-r--r-- 1 root root 383 Apr 13 2010 nm-unfs-setup.sudoers
-rw-r--r-- 1 root root 122 Apr 13 2010 nm-usb-setup.sudoers
-rw-r--r-- 1 root root 211 Apr 13 2010 nm-vnc-setup.sudoers
-rw-r--r-- 1 root root 392 Apr 9 2009 osso-af-startup.sudoers
-rw-r--r-- 1 root root 445 Feb 17 2010 osso-app-killer.sudoers
-rw-r--r-- 1 root root 201 Feb 5 2010 osso-applet-languageregional.sudoers
-rw-r--r-- 1 root root 39 Jun 21 2010 powertop.sudoers
-rw-r--r-- 1 root root 50 Aug 8 2010 qcpufreq.sudoers
-rw-r--r-- 1 root root 101 Jan 25 2010 ssc-daemon.sudoers
-rw-r--r-- 1 root root 53 Mar 20 12:13 swappolube.sudoers
-rw-r--r-- 1 root root 46 Apr 21 2010 tscalibrate-fix.sudoers
-rw-r--r-- 1 root root 42 Jan 7 2010 tscalibrate.sudoers
-rw-r--r-- 1 root root 50 Jul 31 2010 tweakflashver.sudoers
-rw-r--r-- 1 root root 39 Jul 13 20:49 wifi-switcher.sudoers
-rw-r--r-- 1 root root 37 Apr 15 23:33 xbox360-media-remote
~ $ 2
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#14
Definitely looks like filesystem corruption then Unfortunately I don't think there's any way to fix that on the rootfs, other than a reflash.

You may be able to get things "fixed" by doing:
Code:
root
mkdir /etc/sudoers.temp
mv /etc/sudoers.d/* /etc/sudoers.temp
rm -rf /etc/sudoers.d
mv /etc/sudoers.temp /etc/sudoers.d
chmod 755 /etc/sudoers.d
I'd recommend a reflash though, as there's no way of knowing what else is/will get corrupted.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 345 | Thanked: 117 times | Joined on Jan 2010 @ uk
#15
tried it. no change.

I am trying to find a way of removing bluetooth-pan now but it doesn't look as if anyone has removed it before, looking at these forums. I am hoping this might make the problem dissappear. Is there an easy way to 'reverse' a chmod command

this one for instance:

chmod u+x /home/user/bluetooth-pan.sh

and

echo "/home/user/bluetooth-pan.sh" | sudo gainroot
 
Posts: 345 | Thanked: 117 times | Joined on Jan 2010 @ uk
#16
Is there a way to un-hide a directory. I don't know how or why it might be hidden, but some experiments have indicated that some things just can't see that directory at all (etc/sudoers.d) possibly due to permissions or something, I have no idea.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#17
Originally Posted by kyllerbuzcut View Post
tried it. no change.

I am trying to find a way of removing bluetooth-pan now but it doesn't look as if anyone has removed it before, looking at these forums. I am hoping this might make the problem dissappear. Is there an easy way to 'reverse' a chmod command

this one for instance:

chmod u+x /home/user/bluetooth-pan.sh

and

echo "/home/user/bluetooth-pan.sh" | sudo gainroot
You'd reverse the chmod command by using "-" instead of "+" there, but that won't do anything useful here. You'd need to reverse everything that was actually carried out by the "/home/user/bluetooth-pan.sh" script. If you post the contents (cat /home/user/bluetooth-pan.sh) then someone might be able to help with a reversal script.

Originally Posted by kyllerbuzcut View Post
Is there a way to un-hide a directory. I don't know how or why it might be hidden, but some experiments have indicated that some things just can't see that directory at all (etc/sudoers.d) possibly due to permissions or something, I have no idea.
If the permissions were set to 755 as I suggested, then everything should be able to read it. Do you have any examples of things that can't see the directory at all?
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 345 | Thanked: 117 times | Joined on Jan 2010 @ uk
#18
been trying to apt-get --reinstall some things to see exactly that

rootsh reinstalled fine.
File box runs into the problem and says can't remove /etc/sudoers.d/filebox.sudoers.
I made a backup then deleted the contents of sudoers.d tried it- same error.
put a blank file in there with correct name - same error
copied the right file back- same error

Tried it with cleven error same (except same it can't find /etc/sudpers.d/cleven.sudoers)

reinstalling conky worked fine.

reinstalling yosmapa worked fine.
My conclusion is that etc/sudoers is just not visible
If an app doesn't need to use that folder then it installs and updates fine. If it needs it then it returns an error. How to fix that is the big problem lol.

I've tried running update-sudoers and it seems to work but nothing changes. ( don't really know what that's supposed to do though.)

EDIT: further experimenting suggests, from putting other files in there, that whatever I am trying to install/update just returns an error based on the name of the files. So if there is a.sudoers, b.sudoers and c.sudoers and I try to update program x - it will same error can't find a.sudoers no such file.
If I delete a.sudoers then it throws up can't find b.sudoers instead.

Last edited by kyllerbuzcut; 2011-08-25 at 18:41. Reason: additional info
 
Posts: 345 | Thanked: 117 times | Joined on Jan 2010 @ uk
#19
I think I will give up now and restore a backup. Just looked and latest one was in april oh well- needs must.and all that.Might try just restoring root first before opt
 
Posts: 345 | Thanked: 117 times | Joined on Jan 2010 @ uk
#20
thanks fpr all the help rob1n.
I restored the backup root from april. (i WAS lanning to do one this summer, honest). No ill effects (yet) from not restoring backup opt at the same time.. updates and upgrades looking like they are going as normal now (except something funny happened when It updated kernel-power. I will investgate later maybe)
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:05.