LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-13-2011, 09:35 AM   #1
petervroegop
LQ Newbie
 
Registered: Apr 2011
Location: Gouda, The Netherlands
Distribution: Ubuntu, Suse, RHEL, Centos
Posts: 14

Rep: Reputation: 1
Pam_mkhomedir and default group


I'm setting uo a linux fileserver.
I use winbind to let AD users connenct to there home and group directories.
I'm at the point that users can login to the linux server and with pam_mkhomedir a home directorie is made when there is no one.

The problem I have is that the home directory get the ad primairy group of the user as group owner.

My question is can I change this?

I want to create a user home directory with full acces for the user (that works) and full access to the group ICT (full access to the group works with the correct umask in de command pam_mkhomedir umask 0007) However the default group isn't the group ICT but the primairy group of the user.

can anybody help me.

regards peter
 
Old 05-14-2011, 03:18 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

Set the "force group =" option in your smb.conf file.
More info here.
 
0 members found this post helpful.
Old 05-16-2011, 07:59 AM   #3
petervroegop
LQ Newbie
 
Registered: Apr 2011
Location: Gouda, The Netherlands
Distribution: Ubuntu, Suse, RHEL, Centos
Posts: 14

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by xeleema View Post
Greetingz!

Set the "force group =" option in your smb.conf file.
More info here.
I think we have a mis communication. The option the option you give me (nice site with a lot of info BTW) is how to reach an exixting share with samba.

What I want is create a directory with an other group as the primairy group as the user has.
The home dir is made with the PAM_module mkhomedir. So I think its a switch for this module(??)

Regards Peter
 
Old 05-19-2011, 07:21 AM   #4
petervroegop
LQ Newbie
 
Registered: Apr 2011
Location: Gouda, The Netherlands
Distribution: Ubuntu, Suse, RHEL, Centos
Posts: 14

Original Poster
Rep: Reputation: 1
I solved my problem by changing the procedure.
In practice the users shall not login locally on the linux server so the home directory will not be created at login.

I wrote a script that reads the ad-users, determined the necessity of a home directory for each user (system account don't need a home directory) and create the home directory if necessary. In the script I also set the owner, group an permissions of the home directory.

So the necessity of creating a homedirectory, set the owner, group and permissions by login is no longer present.

With best regards,

Peter
 
  


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
Default Group For New Users carlosinfl Red Hat 1 10-28-2009 10:03 AM
Default user group mrtedweb Linux - Newbie 3 08-23-2009 12:37 PM
pam_mkhomedir does not work G4tsu Linux - General 3 09-18-2008 12:11 PM
pam_mkhomedir.so problems Mordeth_0 Linux - Networking 1 08-22-2004 04:08 PM
group passwords + default chosmer Linux - Security 1 07-01-2002 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:02 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