Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

sudo: effective uid is not 0 - returns after fix
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
sudo: effective uid is not 0 - returns after fix
22nd Dec, 2013, 02:22 AM
Post: #1
rbellamy Offline
Registered
Posts: 21
Joined: May 2013
Reputation: 2
Bug sudo: effective uid is not 0 - returns after fix
Similar to @d4m4s74, My recent set of updates has caused a problem with sudo.

In the thread titled "Strange issue: sudo: effective uid is not 0, is sudo installed setuid root?" the solution was to run the following commands:
Code:
for f in bin etc lib media mnt opt root sbin usr var xbmc-backup; do chown -R root $f; done
chown root:root /home
chown syslog /var/log/*
chown -R man /var/cache/man
chown -R xbian:xbian /usr/local/share/xbmc/addons/plugin.xbianconfig
chmod 4755 /usr/bin/sudo

I did that, ran
Code:
dpkg-reconfigure -a
after reboot.

Lo and behold, the problem is BACK! I've now done this several times, with and without the `dpkg-reconfigure -a`.

So then I try to roll back to one of my btrfs snapshots. No luck there:
Code:
root@lamassu ~ # apt-get install strace
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fbset gnutls-bin libass-dev libbluray-dev libenca-dev libfontconfig1-dev libfreetype6-dev libjasper-dev libpar2-0 libsigc++-dev libsigc++0c2
  python-cheetah
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  strace
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/123 kB of archives.
After this operation, 296 kB of additional disk space will be used.
Error: another copy is running ... 0
Error: another copy is running ... 1
Error: another copy is running ... 2
Error: another copy is running ... 3
Error: another copy is running ... 4
Error: another copy is running ... 5
Error: another copy is running ... 6
Error: another copy is running ... 7
Error: another copy is running ... 8
Error: another copy is running ... 9
Error: another copy is running ... 10
Error: another copy is running ... 11
Error: another copy is running ... 12
E: Problem executing scripts DPkg::Pre-Invoke '[ ! -e /etc/default/xbian-snap ] || . /etc/default/xbian-snap; [ $ENABLEDAPT = yes ] || exit 0; z=$(findmnt -n | grep -m1 . | awk '{print $2}'); z=${z#*\[\/}; export z=${z%%\/*}; if [ -x /usr/sbin/btrfs-auto-snapshot ]; then btrfs-auto-snapshot snapshot -k 10 -l apt-run $z ;  fi ;'
E: Sub-process returned an error code

And yes, I tried to rollback AFTER I'd fixed up the permissions and before I rebooted again, so presumably the permissions should have allowed the rollback.

I'm downloading B2 right now and expect to try a fresh install. This isn't my ideal. Tongue

Thanks for the awesome project and keep up the good works!
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
sudo: effective uid is not 0 - returns after fix - rbellamy - 22nd Dec, 2013 02:22 AM
RE: sudo: effective uid is not 0 - returns after fix - mk01 - 22nd Dec, 2013, 02:41 AM
RE: sudo: effective uid is not 0 - returns after fix - rbellamy - 22nd Dec, 2013, 03:02 AM
RE: sudo: effective uid is not 0 - returns after fix - mk01 - 22nd Dec, 2013, 03:38 AM
RE: sudo: effective uid is not 0 - returns after fix - rbellamy - 22nd Dec, 2013, 04:00 AM
RE: sudo: effective uid is not 0 - returns after fix - mk01 - 22nd Dec, 2013, 04:01 AM
RE: sudo: effective uid is not 0 - returns after fix - rbellamy - 22nd Dec, 2013, 04:06 AM
RE: sudo: effective uid is not 0 - returns after fix - mk01 - 22nd Dec, 2013, 04:08 AM
RE: sudo: effective uid is not 0 - returns after fix - rbellamy - 22nd Dec, 2013, 04:28 AM
RE: sudo: effective uid is not 0 - returns after fix - mk01 - 22nd Dec, 2013, 04:34 AM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Strange issue: sudo: effective uid is not 0, is sudo installed setuid root? d4m4s74 38 120,682 8th Sep, 2016 11:00 PM
Last Post: dgarciam

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 25th May, 2025, 11:23 AM Powered By MyBB, © 2002-2025 MyBB Group.