Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Per-user login scripts

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Guest

Per-user login scripts

#1 Post by Guest »

So I'm pretty new to the Linux hosting scene, but so far, so good. So I'm running FTP/Apache2/MySQL and PHP off a server of mine. I've got multiple ftp users as well as multiple mysql users. What I would like to do is have a mysql username. When you login it executes a script running mysql and setting the home dir to the users home.

I know there has to be a way to execute scripts on startup. The problem isn't so much writing the script itself, but figuring out where to put it so it only runs when a certain user logs in.

Any ideas? Thanks

vhkristof
Posts: 8
Joined: 2005-09-30 12:53

#2 Post by vhkristof »

Why use mysql to get users into their homedirectory?

Couldn't you just modify their .bash_profile to contain the login_scripts ?

Greetz,
Kristof

Post Reply