Linux - ServerThis 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.
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.
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.
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(??)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.