Messages in this thread | | | Date | Mon, 13 Mar 2000 15:21:36 -0800 | From | The Doctor What <> | Subject | Re: Kernel 2.3.49/51 and exec permissions |
| |
* Bob Hilliard (hilliard@flinet.com) [000313 07:44]: > The Doctor What <docwhat@gerf.org> writes: > > > but not if I try to sudo to a non-root id (this is as root, note the #): > > bash-2.04# sudo -u man bash > > sudo: unable to exec /bin/bash: Permission denied > > This doesn't affect your main question, but you are using the > wrong syntax for sudo. The -u option takes a username/uid argument. > Your command is telling sudo to run bash as user man, who doesn't > exist. sudo is normally run by a user (not root) who is listed in the > file /etc/sudoers.
I'm sorry, but that is exactly what I was trying to do. Show that I can become any user other than root. Here is the same command working on a system without these problems: gerf, 3:02PM Mon 13> sudo -u man bash Password: bash-2.03$ id uid=6(man) gid=100(users) groups=100(users)
But thanks for trying to help.
Ciao!
-- The wheel is turning but the hamster is dead.
The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |