Re: Is there any way for automounted home directories to co-exist with local account homes in /home?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just in case this is useful..
You can use NIS to include automounted home directories
and override the home directory for a particular user,
but it might require 'compat mode'.

$ grep passwd /etc/nsswitch.conf
passwd: compat
#passwd: files nis  #might work, test in your environment

$ tail -3 /etc/passwd
lyoke:x:1000:1000:Local Yokel,,,:/home/lyoke:/bin/bash
+cnsit:::::/local/home/cnsit:
+:

Those three lines do the following:
* a normal local account with local home dir
  (for comparison to the other lines I am showing)
* override (only) the home dir for NIS user cnsit
* allow any other NIS user to login and get the home directory
  specified in the NIS passwd map.

This may also work with an LDAP NSS source, haven't tried.

Cheers
Vince
--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux