WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Possible SSH -login ONLY startup script  (Read 2139 times)

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Possible SSH -login ONLY startup script
« on: October 25, 2014, 08:52:37 AM »
Hi forum here.

I need a script, or like, which only executes when i login.

My idea is, that programs like midnight commander, nano, compile-essentials etc... etc... shall load only, when i login.

Is there some file, or something else, which is created / executed, or like when a user login ??

Regards;
   Jesper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Possible SSH -login ONLY startup script
« Reply #1 on: October 25, 2014, 09:00:47 AM »
Scripts in /etc/profile.d
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Possible SSH -login ONLY startup script
« Reply #2 on: October 25, 2014, 09:20:15 AM »
So.

Are scripts automatically executed there by login ?

Also i have to add /etc/profile.d to /opt/.filetool.lst ?

Quote
tc@box:~$ ls -all /etc/profile.d
total 4
drwxrwxr-x    2 root     staff            0 Sep 15 17:49 ./
drwxr-xr-x    7 tc       staff            0 Jan  1  1970 ../
-rwxr-xr-x    1 root     root            51 Sep 15 17:49 armmem.sh

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Possible SSH -login ONLY startup script
« Reply #3 on: October 25, 2014, 09:39:44 AM »
yes
yes
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Possible SSH -login ONLY startup script
« Reply #4 on: October 25, 2014, 09:43:04 AM »
 :) working.. Thx..