Results 1 to 4 of 4

Thread: Force PAM to create new user home folder in Debian Linux

  1. #1
    Join Date
    Jan 2012
    Posts
    103

    Force PAM to create new user home folder in Debian Linux

    I want to setup the GDM to log by a RADIUS server. I have been trying this from the past few days but couldn’t achieve it yet. The problem is, the logging only works if the user already has a local home folder. In that case I have to configure or create a user home folder using pam_mkhomedir but no success at all.

  2. #2
    Join Date
    Jul 2011
    Posts
    350

    Re: Force PAM to create new user home folder in Debian Linux

    Did you try following command in /etc/pam.d/system-auth:
    Code:
    session optional pam_mkhomedir.so
    As far as I know that the Pluggable Authentication Modules library, or PAM, is actually a collection of shared libraries. These shared libraries are used to control how users login to systems. By the use of number of modules previously installed or previously available, we can restrict user access to systems in different ways. You can also customize the login behavior by the use of several utility modules.

  3. #3
    Join Date
    Jul 2011
    Posts
    352

    Re: Force PAM to create new user home folder in Debian Linux

    For the PAM, it does not matter where you place it. By the use of control fields it can be determine how the action will play out. In your case, the problem is an "optional" module filed to execute and it happens if there only one module inside the stack. It shouldn’t because it is a session stack. But if this really happened you need to manually place it in the appropriate stack.

  4. #4
    Join Date
    Feb 2010
    Posts
    524

    Re: Force PAM to create new user home folder in Debian Linux

    I think that if there is no home directory, then it will be automatically created when we try to login to that particular account.
    Code:
    root@lappy:~# su - pamtest
    Creating directory '/home/pamtest'.
    Code:
    pamtest@lappy:~$

Similar Threads

  1. Changing Home/User Folder under Mac
    By Ucchal in forum Operating Systems
    Replies: 6
    Last Post: 02-06-2010, 10:13 AM
  2. How to create a user webmin via command line in Linux
    By Elsie in forum Networking & Security
    Replies: 3
    Last Post: 25-04-2009, 06:26 PM
  3. User Home Folder Permissions
    By prakashseth in forum Active Directory
    Replies: 3
    Last Post: 17-04-2009, 04:34 PM
  4. How to create New User Profile in Windows XP Home ?
    By Omprakash in forum Operating Systems
    Replies: 2
    Last Post: 26-02-2009, 10:52 AM
  5. create home directory while adding user to AD
    By napoleon in forum Active Directory
    Replies: 1
    Last Post: 25-02-2008, 07:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,630,933.97470 seconds with 17 queries