LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2009, 05:51 PM   #1
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
samba and pam.d create a home directory


hello,
I have winbind + pam authentication working just perfect with our active directory. I am trying to jail users to their home directory so they don't have access to any level above their home directory with sftp. This works ok with openssh 5.x and ChrootDirectory, the problem is that when I login with a new user the owner of the /home/user directory is the user trying to authenticate, but in order for the jail to work, I need it to be owned by root:root.
SSH logs the following error:
Apr 8 16:10:19 linuxauth sshd[22007]: fatal: bad ownership or modes for chroot directory "/home/user"
that works fine if I chown root.root that particular directory.
smb.conf has:
template homedir = /home/%U

and pam.d/system-auth has:
session optional pam_mkhomedir.so skel=/etc/skel umask=0022

Is there anyway to make root:root the owner of the directory?
thanks.
 
  


Reply



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
Getting pam working with samba (with active directory authentication) kcorupe Linux - Server 3 05-02-2008 10:04 AM
Samba: automatically create a domain user's home directory sfoo Linux - Newbie 1 03-04-2008 03:26 PM
Auto Create user home directory on Samba m2azer Linux - Networking 2 01-15-2007 11:56 AM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
Creating home directories with samba and PAM mkhomedir ferrantepunto Linux - Software 2 01-21-2004 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:05 PM.

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