Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 17733  / 1 Year ago, thu, january 26, 2023, 8:56:57

I have a setup where my users log on using ldap and it works just fine.



I want to run a script after my users login (its a script that will detect which groups they are in and map network shares accordingly), and after they logout (umounting their shares).



Both scripts are done and they work.



I want that when the user logs in the box a script runs downloading the mounting script from my server (wget i guess?) and runs it, same thing for logout.



Can it be done? I've been searching the net and had no luck so far.
I've managed to make that work on shell login/logout, but my users dont even know what shell is and have no use for it :)


More From » login

 Answers
3

Found it.



/etc/gdm/PostLogin/Default for login script
/etc/gdm/PostSession/Default for logout script


I figured from Florian's suggestion that there should be something for gdm that did it :)


[#41587] Friday, January 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
huovie

Total Points: 234
Total Questions: 99
Total Answers: 105

Location: Central African Republic
Member since Sun, Feb 26, 2023
1 Year ago
huovie questions
Mon, Aug 2, 21, 01:46, 3 Years ago
Thu, Feb 2, 23, 10:58, 1 Year ago
Thu, Oct 21, 21, 08:55, 3 Years ago
Sun, Dec 5, 21, 23:57, 2 Years ago
;