[mdlug] Export homedirs via NFS and Samba?

Wojtak, Greg GregWojtak at quickenloans.com
Wed Mar 19 10:00:06 EDT 2008


Solution found?!

I am still using winbind.  In my [homes] section, I have the following:

[homes]
        comment = Home Directories
        browseable = no
        writable = yes
        force user = %S


I added the force user to force the UNIX permissions to be the name of
the service, in this case the username and name of the home directories
match up.

Comments?  I'm curious what other people think of this - limitations
(other than the obvious of having the username have to match the home
directory name).

Thanks!

Greg
http://www.yesthatsright.net/

-----Original Message-----
From: mdlug-bounces at mdlug.org [mailto:mdlug-bounces at mdlug.org] On Behalf
Of David Lee Lambert
Sent: Tuesday, March 18, 2008 8:40 PM
To: MDLUG's Main discussion list
Subject: Re: [mdlug] Export homedirs via NFS and Samba?

Yes, that's a common setup, but if Greg has UNIX accounts for all users 
already,  why does he need winbind?

The "winbind trusted domains only" and "winbind trusted domains only" 
parameters sound like they might solve this kind of problem;  but I've
never 
needed to use winbind.

Another possibility,  if his personal account is the only one with this 
problem,  is to edit /etc/passwd and change the uid for "gwojtak" to the
one 
winbindd generated for "MI+gwojtak".  I have a computer where I
sometimes 
want my home-directory to be local and sometimes want it to come in over

NFS,  so I have a line in /etc/passwd "dLocal:1024:..." and a local path
in 
the "home" column and another line "davidl:1024:...".


----- Original Message ----- 
From: "Robert Adkins" <radkins at impelind.com>
To: "'MDLUG's Main discussion list'" <mdlug at mdlug.org>
Sent: Tuesday, March 18, 2008 8:32 AM
Subject: Re: [mdlug] Export homedirs via NFS and Samba?


> Use Access Control Lists.
>
> The Filesystem should definitely support that, just tweak that on the 
> server
> to support both the UNIX and the Domain permissions and away you go.
(Or 
> at
> least, that's the theory...)
>
> -Rob
>
>
>> -----Original Message-----
>> From: mdlug-bounces at mdlug.org
>> [mailto:mdlug-bounces at mdlug.org] On Behalf Of Wojtak, Greg
>> Sent: Tuesday, March 18, 2008 8:29 AM
>> To: mdlug at mdlug.org
>> Subject: [mdlug] Export homedirs via NFS and Samba?
>>
>> Is this a common setup?  I have an NFS/Samba server set up.
>> I am currently exporting users' home directories.  I want the
>> users to be able to mount their home directories on UNIX or
>> Windows, but here is the issue I am having.  The server is
>> joined to the domain MI.  I can export /home/gwojtak via NFS
>> just fine.  I can export [homes] in Samba just fine.  The
>> problem comes up with permissions - UNIX, of course just sets
>> ownership to gwojtak on newly created files.  If I try to
>> access my home directory via Samba, it is getting the
>> expected winbind mangling, 'MI+gwojtak' and permission is
>> denied to even pull up the UNC.  Changing the ownership on
>> the Samba server on /home/gwojtak to MI+gwojtak makes it work
>> properly on Windows, but then breaks NFS ownerships.
>>
>> Is this not a good setup?  What am I doing wrong, or should I
>> not even be doing this?  It seems to me that this would be a
>> common implementation?  This is a Red HATE Enterprise Linux
>> 5.1 server.
>>
>>
>> Thanks!
>>
>> --
>> Greg Wojtak
>> http://www.yesthatsright.net/
>> _______________________________________________
>> mdlug mailing list
>> mdlug at mdlug.org
>> http://mdlug.org/mailman/listinfo/mdlug
>>
>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
> 

_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug



More information about the mdlug mailing list