Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-13-2011, 09:35 AM
|
#1
|
LQ Newbie
Registered: Apr 2011
Location: Gouda, The Netherlands
Distribution: Ubuntu, Suse, RHEL, Centos
Posts: 14
Rep:
|
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
|
|
|
05-14-2011, 03:18 AM
|
#2
|
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
|
Greetingz!
Set the " force group =" option in your smb.conf file.
More info here.
|
|
0 members found this post helpful.
|
05-16-2011, 07:59 AM
|
#3
|
LQ Newbie
Registered: Apr 2011
Location: Gouda, The Netherlands
Distribution: Ubuntu, Suse, RHEL, Centos
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by xeleema
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
|
|
|
05-19-2011, 07:21 AM
|
#4
|
LQ Newbie
Registered: Apr 2011
Location: Gouda, The Netherlands
Distribution: Ubuntu, Suse, RHEL, Centos
Posts: 14
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|