please do the following
starting as normal user:
Code:
cd /tmp
touch asdf
ls -al
lsattr
rm asdf
sudo rm asdf
su -
cd /tmp
touch asdf
ls -al
lsattr
sudo rm asdf
one could probably expand that test; we just need to get a better picture of what's going on here.
_______________________________
Quote:
Originally Posted by irissun
Yes, but changed a little to remove machine specific stuff.
|
have you also carefully compared versions of sudo, and differences in the sudoers files, and lastly permissions of the end result?
i'm pretty sure sudo will balk if sudoers doesn't have the exact right permissions.
fwiw, on my system it's:
Code:
-r--r----- 1 root root 3.2K May 17 07:18 /etc/sudoers
__________________________________
btw, i'm with one of the previous posters: if you're already root, you don't need sudo.
Quote:
Originally Posted by irissun
The issue is that the "sudo" is in a script. The script will be ran by root and also some other non-root user sometimes.
|
you can script that, too: check the current user id, and don't use sudo if it's 0.