NIS authentication & /home directories
hi all,
I have a linux box that authenticates users from NIS server. I do not have home directories of any users on my box. I am able to achieve authentication properly, but there is a message saying ... No directory /home/username! Logging in with home="/". Now I want to create home directory locally as soon as a user is authenticated via NIS in the case that there is no /home/username. I tried putting some lines of code in bashrc, but it seems, login completely ignores whatever is in bashrc. It works for root though (UID<500). I tried the profile file too but it gave permission denied error. I want to only authenticate using NIS and create home directories locally using (maybe) a local script which runs after authentication ... checks if home directory exists, if not, creates one using the username it just authenticated for. I need a solution to get around this. All help will be highly appreciated. Thanks in advance, Regards, -zapp |
All times are GMT -5. The time now is 03:38 AM. |