[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-team] login interdit/su ok -- LA SOLUCE DU PROBLEME DE LA SEMAINE
Si tu fais "man login", il y a la description d'un fichier /etc/usertty. Ca doit faire ce que tu veux.
Autre 'bleme: pas reussi a l'utiliser.
Fred.
Alain Nissen wrote:
>
> Pascal Bleser wrote:
> >
> > Qqn a une idée comment je pourrais y détecter la différence entre un
> > su - et un rlogin/rsh/rexec/telnet ?
>
> Tu peux peut-être utiliser la fonctionnalité FAKE_SHELL de
> /etc/login.defs. Le programme en question devra vérifier, pour certains
> utilisateurs, le type de login réalisé; il "suffit" de récupérer le PID
> du père du fake-shell et de regarder la ligne de commande via
> /proc/#ppid : si ce n'est pas "su", tu fais un "exit"; sinon, tu
> exécutes $1.
>
> Alain
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
--
------------------------- * oOo * -------------------------
CiscoSystems
Frederic Detienne, CSE II
Security & Network Services
Tel 32 2 705 55 55
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.