From: Thomas Hafner Date: 2007-01-30T19:55:09+09:00 Subject: Re: How to get the unix login name of the calling user? Moritz Reiter wrote/schrieb : > Now I want to set the default location of for the config file to > /home/username/.my_config_file. Therefore I have to get the username > of the user who is calling the script. Not necessarily. How about that?: File.expand_path("~/.my_config_file") => /home/username/.my_config_file Regards Thomas