Kimmo Koivisto
2006-Oct-27 06:52 UTC
[Fedora-directory-users] Is it possible to use events to create homedirs when user entry is created or deleted?
Hello I have small environment with one FDS server and one application server, both RHEL4ES. FDS server provides ldap authentication and home directories for app server with ldap and nfs. I administrate users and groups with phpldapadmin or windows based ldapadmin, everything is working fine. When I add new user to the FDS, I have to create home directory for that user manually, set permissions and copy /etc/skel files. I would like to do home directory administration tasks automatically when user is added or deleted from FDS. One solution (I don''t like this) is that I use some command line ldap capable adduser instead of ldapadmin or phpldapadmin. Does FDS have any event support that I could use or are there any existing solutions for this problem? Best Regards Kimmo Koivisto
gennaro.tortone@na.infn.it
2006-Oct-27 07:28 UTC
Re: [Fedora-directory-users] Is it possible to use events to create homedirs when user entry is created or deleted?
Hi, take a look to pam_mkhomedir; it is a PAM module that create (if it does not exist) the user home directory; Regards, On Fri, 27 Oct 2006, Kimmo Koivisto wrote:> Hello > > I have small environment with one FDS server and one application > server, both RHEL4ES. FDS server provides ldap authentication and home > directories for app server with ldap and nfs. > > I administrate users and groups with phpldapadmin or windows based > ldapadmin, everything is working fine. > > When I add new user to the FDS, I have to create home directory for > that user manually, set permissions and copy /etc/skel files. > > I would like to do home directory administration tasks automatically > when user is added or deleted from FDS. > > One solution (I don''t like this) is that I use some command line ldap > capable adduser instead of ldapadmin or phpldapadmin. > > Does FDS have any event support that I could use or are there any > existing solutions for this problem? > > > Best Regards > Kimmo Koivisto > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > >-- Gennaro Tortone INFN Napoli Italy tel: +39 81 676169 "Computer Science is no more about computers than astronomy is about telescopes." - Edsger Dijkstra
Chris St. Pierre
2006-Oct-27 12:30 UTC
Re: [Fedora-directory-users] Is it possible to use events to create homedirs when user entry is created or deleted?
On Fri, 27 Oct 2006, Kimmo Koivisto wrote:> Does FDS have any event support that I could use or are there any > existing solutions for this problem?There''s a PAM module for this: pam_mkhomedir.so. You can configure it so that the first time someone logs in, their home dir is auto-created. We use that on the machines our users have shell access to, plus the "root preexec" directive for our Samba fileserver, to automatically generate home dirs. Just make sure that you have something in place to automatically delete them, too! :) Chris St. Pierre Unix Systems Administrator Nebraska Wesleyan University
Matthias Saou
2006-Oct-27 14:06 UTC
Re: [Fedora-directory-users] Is it possible to use events to create homedirs when user entry is created or deleted?
gennaro.tortone@na.infn.it wrote :> take a look to pam_mkhomedir; it is a PAM module that create > (if it does not exist) the user home directory;Well, pam_mkhomedir doesn''t work in some cases, most notably with sshd and privileges separation... I''ve been using "autodir" successfully for some time now, it''s a great little program to achieve exactly what you''re asking for. Matthias> On Fri, 27 Oct 2006, Kimmo Koivisto wrote: > > > Hello > > > > I have small environment with one FDS server and one application > > server, both RHEL4ES. FDS server provides ldap authentication and home > > directories for app server with ldap and nfs. > > > > I administrate users and groups with phpldapadmin or windows based > > ldapadmin, everything is working fine. > > > > When I add new user to the FDS, I have to create home directory for > > that user manually, set permissions and copy /etc/skel files. > > > > I would like to do home directory administration tasks automatically > > when user is added or deleted from FDS. > > > > One solution (I don''t like this) is that I use some command line ldap > > capable adduser instead of ldapadmin or phpldapadmin. > > > > Does FDS have any event support that I could use or are there any > > existing solutions for this problem?-- Clean custom Red Hat Linux rpm packages : http://freshrpms.net/ Fedora Core release 6 (Rawhide) - Linux kernel 2.6.18-1.2798.fc6 Load : 0.00 0.03 0.20
Greg Copeland
2006-Nov-21 20:16 UTC
RE: [Fedora-directory-users] Is it possible to use events to createhomedirs when user entry is created or deleted?
Does this work with home directories which are located other than /home? Cheers, Greg Copeland> -----Original Message----- > From: fedora-directory-users-bounces@redhat.com[mailto:fedora-directory-> users-bounces@redhat.com] On Behalf Of gennaro.tortone@na.infn.it > Sent: Friday, October 27, 2006 2:29 AM > To: General discussion list for the Fedora Directory server project. > Subject: Re: [Fedora-directory-users] Is it possible to use events to > createhomedirs when user entry is created or deleted? > > > Hi, > take a look to pam_mkhomedir; it is a PAM module that create > (if it does not exist) the user home directory; > > Regards, > > On Fri, 27 Oct 2006, Kimmo Koivisto wrote: > > > Hello > > > > I have small environment with one FDS server and one application > > server, both RHEL4ES. FDS server provides ldap authentication andhome> > directories for app server with ldap and nfs. > > > > I administrate users and groups with phpldapadmin or windows based > > ldapadmin, everything is working fine. > > > > When I add new user to the FDS, I have to create home directory for > > that user manually, set permissions and copy /etc/skel files. > > > > I would like to do home directory administration tasks automatically > > when user is added or deleted from FDS. > > > > One solution (I don''t like this) is that I use some command lineldap> > capable adduser instead of ldapadmin or phpldapadmin. > > > > Does FDS have any event support that I could use or are there any > > existing solutions for this problem? > > > > > > Best Regards > > Kimmo Koivisto > > > > -- > > Fedora-directory-users mailing list > > Fedora-directory-users@redhat.com > > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > > > > -- > Gennaro Tortone > INFN Napoli > Italy > tel: +39 81 676169 > > "Computer Science is no more about computers > than astronomy is about telescopes." > - Edsger Dijkstra > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users
Morris, Patrick
2006-Nov-21 23:11 UTC
RE: [Fedora-directory-users] Is it possible to use events tocreatehomedirs when user entry is created or deleted?
> Does this work with home directories which are located other > than /home? > > Cheers, > > Greg Copeland > > > -----Original Message----- > > From: fedora-directory-users-bounces@redhat.com > [mailto:fedora-directory- > > users-bounces@redhat.com] On Behalf Of gennaro.tortone@na.infn.it > > Sent: Friday, October 27, 2006 2:29 AM > > To: General discussion list for the Fedora Directory server project. > > Subject: Re: [Fedora-directory-users] Is it possible to use > events to > > createhomedirs when user entry is created or deleted? > > > > > > Hi, > > take a look to pam_mkhomedir; it is a PAM module that create (if it > > does not exist) the user home directory;Yes, it does. It will create whatever home directory is specified for the user. It does not, however, work at all with recent versions of OpenSSH. You can also look into make_home_dir, which does work with OpenSSH. http://www.trustsec.de/soft/oss