setuid login scripts as a shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'm wondering if there is any way to have a setuid login script?

Here's what I'm attempting to do:

Have a user login via ssh to the system and when properly authenticated run the
setuid binary.

The binary runs fine if the user is already logged into a valid shell but if I
set the binary to be the login shell then sshd(pam_unix) complains that the user
is unknown:

Mar  4 10:14:12 n1-22 sshd(pam_unix)[5074]: check pass; user unknown
Mar  4 10:14:20 n1-22 sshd(pam_unix)[5074]: 1 more authentication failure;
logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=MYOTHERHOST

My question is: Is there anyway around this?

I understand the potential danger of setuid programs but still need to get this
working :-)

Thanks,
Harry


-- 
Harry Hoffman
hhoffman@xxxxxxxxxxxxxxxx
----------------------------------------------------------------------------------
radical:
1) Someone waiting in line to become "The Establishment"

-------------------------------------------------
This mail sent through IpSolutions: http://www.ip-solutions.net/


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux