Login script Windows and Linux


When a user logs in via WIndows (AD Domain), I have a login script execute to mount network drives.

  1. Is there a way to do that with a Linux login?
  2. Is there a way to run a Linux script when I have a Windows login?
    2a. can the Linux script get AD info such as group membership, username, etc?