I made a beautiful mess:
I created a foo.sh script in /etc/profile.d/ . foo.sh does terminate when logging in as a non-root user. However, it fails when logging in as root via "su" and it does not
terminate. Thus, after typing
(and entering the password) it fails to terminate and does not do anything anymore. This causes the problem, that I cannot delete foo.sh since I cannot log in as root anymore and my user is not in the sudoers file... Any chance of getting rid of foo.sh? For that matter, it would be only necessary to delete one line in foo.sh - but I cannot do that not being root -.-
Any help is appreciated.