Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-10-2004, 08:37 PM   #1
LQ Newbie
Registered: Jan 2004
Posts: 24

Rep: Reputation: 16
Question 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,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NIS and home directories (Suse 10) linuxmfx Linux - Networking 3 10-19-2005 10:28 AM
Trouble Accessing NIS Home Directories MarvinWatkins Red Hat 2 06-02-2005 04:23 AM
Home directories and AD authentication Kerry Davis Linux - Networking 5 07-14-2004 10:26 AM
getting home directories to automount with NIS schurt Linux - Networking 3 04-23-2004 12:55 PM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-21-2001 11:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration