[ale] Access rights to directory
Fletch
fletch at phydeaux.org
Wed Aug 30 14:33:08 EDT 2000
>>>>> "Chris" == Chris Fowler <ChrisF at computone.com> writes:
Chris> I have and intresting issue.
Chris> I did the following as root:
Chris> cp /bin/bash /tmp/bash chmod 4755 /tmp/bash
Chris> When I would execute /tmp/bash as a normal user, I wwould
Chris> not run as root. I would run the shell but it would be as
Chris> my normal user. I've been able to do this in the past.
Chris> Has anything changed?
Sure you weren't looking at the real uid instead of the
effective uid?
lemur:/home/fletch 401# cp /bin/bash /tmp/bash 14:29:57
lemur:/home/fletch 402# chmod 4755 /tmp/bash 14:30:10
lemur:/home/fletch 403# 14:30:15
lemur:~ 445> /tmp/bash -c id 14:30:18
uid=294(fletch) gid=100(users) euid=0(root) groups=100(users),20(games)
Looks like it's running as root to me. Another posibility is
that whatever you copied to was a filesystem mounted with nosuid
enabled in the options.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
678 443-6239(w) | scary questions." -- Jules =(___)=
| U
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list