Though I aint new I think I have to post this here without beeing lauched at...
I have problems with Sudo and a Custom Login Shell..

I think that the files explain more then I can so:
/etc/passwd:
Code:
luser:x:503:503::/tmp:/bin/chrootshell
(Custom Shell)
/bin/chrootshell uses sudo to choot user and that kind of stuff.
Well, when I try to login with the user.. (luser) he drops out.
Cant act as su in /usr/sbin so well since I have a moral thing against sudo.. (dont ask me about this..)
Well I have no idea what Ive done wrong in the sudoers file..
This is what it says..
Code:
luser ALL=NOPASSWD: /usr/sbin/chroot /home/luser /bin/su - luser*
oh, and can I change that also to the group name instead of the single user name?