LinuxQuestions.org
Help answer threads with 0 replies.
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, 06: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


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


All times are GMT -5. The time now is 02:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration