Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to make a script that runs everytime a user logs in. I need that to mount the user's home-directory (which is encrypted), so the scipt should run _before_ the home directory is accessed. How can I accomplish this?
Writing the actual script should be no problem, I'm just wondering how get it to execute everytime someone logs in.
In that case I would have to enter the keys everytime I start my computer, hich is not what I want. I want to have several user accounts on the machine, some of them with encrypted home, some without.
Of course I could manually mount the partition everytime I want to login, but that is not very practical.
I didn't really get what you want, but usually startup scripts are in /etc/rc.d or /etc/init.d
If you want a startup script in the home of the user which is started at login, you have a .bash_profile in $HOME, but that's not what you want.
What is your distro?
What will your script do?
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
I thought this was an interesting question. Another suggestion (do not if it would work)
less /etc/kde/kdm/kdmrc
# Specify greeter plugins that can be used to obtain authentication data.
# This can be a plugin's base name (expands to $kde_modulesdir/kgreet_$base)
# or a full pathname. Default is classic
#PluginsLogin=sign
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.