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, 03:38 AM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: sudo: effective uid is not 0 - returns after fix
ok, now it is clear …

the problem is that btrfs-snapshot tool is mounting whole btrfs structure under /tmp to access root of filesystem hierarchy. so being mounted under /tmp/btrfs-snap with all snapshots and subvolumes, it get's chowned.

what you can do is:

Code:
mv /bin/chown /bin/chown.bck
cat <<EOF >/bin/chown
#!/bin/sh

pstree -hp > /tmp/pstree.log

EOF
chmod +x /bin/chown
reboot

then check /tmp/pstree.log

later move /bin/chown.bck /bin/chown
but you would need root privileges. or use the trick with booting via "init=/bin/bash" .

our script should be then started instead of chown binary with only one task, print process tree with PIDs and storing it into /tmp/pstree.log

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
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,686 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, 04:25 PM Powered By MyBB, © 2002-2025 MyBB Group.