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

Re: SUSPECT: RE: SSH ve login ile bir programi tetiklemek: Nasil?



Ercumend Oyuktas wrote:

Selam Emre,

Aşağıda ssh manual ından aldığım bir kısmı yolluyorum. 8. adımda istediğini gerçekleştirebilirsin.

Ercümend Oyuktaş


LOGIN PROCESS
    When a user successfully logs in, sshd does the following:

          1.   If the login is on a tty, and no command has been specified,
               prints last login time and /etc/motd (unless prevented in the configuration file or by $HOME/.hushlogin; see the FILES section).
          2.   If the login is on a tty, records login time.
          3.   Checks /etc/nologin; if it exists, prints contents and quits  (unless root).
          4.   Changes to run with normal user privileges.
          5.   Sets up basic environment.
          6.   Reads the file $HOME/.ssh/environment, if it exists, and users
               are allowed to change their environment.  See the
               PermitUserEnvironment option in sshd_config(5).
          7.   Changes to user's home directory.
          8.   If $HOME/.ssh/rc exists, runs it; else if /etc/ssh/sshrc
               exists, runs it; otherwise runs xauth.  The ``rc'' files are
               given the X11 authentication protocol and cookie in standard
               input.
          9.   Runs user's shell or command.




Sagol bilgi icin (diger Debian'cilara da tesekkürler!).

Benzer bilgiyi kullanarak burada tarif ettigim sekilde cok bir düzenek kurdum ve test ettim,
düzgün calisti simdiye kadar:

http://ileriseviye.org/blog/?p=591

Bi nevi bubi tuzagi :)


--
Emre Sevinç
eMBA Yazılım Geliştirme
İstanbul Bilgi Üniversitesi
<http://getfirefox.com/>



Reply to: