[Samba] smb.conf for around 2500 users

July 02nd, 2012 - 11:50 am ET by steve | Report spam
Samba4 with Linux and Windows clients wanting to get the same home
folder data.

Hi
A college has students arranged with Linux home directories according to
which year they belong to and which class within that year, a or b or
whatever, they belong to e.g.:
/home2/students/year7/year7a/student1
/home2/students/year7/year7a/student2
...
...
/home2/students/year13/year13a/student2500

To get at the same data on windows, I was thinking of a share for each
of the classes e.g.
[year7a]
path = /home2/students/year7/year7a
read only = No
browsable = No
...
...
[year13a]
path = /home2/students/year13/year13a
read only = No
browsable = No

and mapping a drive letter to the share e.g.
map Z: to \\server\year7a\%USERNAME%

That would make lots of shares but would make it readable to non admins.

Is there a limit on the number of shares per installation?
Any other ideas of how to go about it? e.g. I thought about OU's but we
do not want to administer from Windows.

Cheers,
Steve

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 22 repliesReplies Make a reply

Similar topics

Replies

#1 Jonathan Buzzard
July 02nd, 2012 - 12:00 pm ET | Report spam
On Mon, 2012-07-02 at 17:39 +0200, steve wrote:
Samba4 with Linux and Windows clients wanting to get the same home
folder data.

Hi
A college has students arranged with Linux home directories according to
which year they belong to and which class within that year, a or b or
whatever, they belong to e.g.:
/home2/students/year7/year7a/student1
/home2/students/year7/year7a/student2
...
...
/home2/students/year13/year13a/student2500

To get at the same data on windows, I was thinking of a share for each
of the classes e.g.
[year7a]
path = /home2/students/year7/year7a
read only = No
browsable = No
...
...
[year13a]
path = /home2/students/year13/year13a
read only = No
browsable = No

and mapping a drive letter to the share e.g.
map Z: to \\server\year7a\%USERNAME%




Deal with it through your NSS mechanism so that the file server knows
for \\server\%USERNAME% where the users home directory is actually
located and then you can just use the special [homes] share.

I do this with winbind and the unixHomeDirectory attribute in AD.

JAB.

Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk
Fife, United Kingdom.


To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#2 steve
July 02nd, 2012 - 12:30 pm ET | Report spam
On 02/07/12 17:49, Jonathan Buzzard wrote:

On Mon, 2012-07-02 at 17:39 +0200, steve wrote:
Samba4 with Linux and Windows clients wanting to get the same home
folder data.

Hi
A college has students arranged with Linux home directories according to
which year they belong to and which class within that year, a or b or
whatever, they belong to e.g.:
/home2/students/year7/year7a/student1
/home2/students/year7/year7a/student2
...
...
/home2/students/year13/year13a/student2500

To get at the same data on windows, I was thinking of a share for each
of the classes e.g.
[year7a]
path = /home2/students/year7/year7a
read only = No
browsable = No
...
...
[year13a]
path = /home2/students/year13/year13a
read only = No
browsable = No

and mapping a drive letter to the share e.g.
map Z: to \\server\year7a\%USERNAME%




Deal with it through your NSS mechanism so that the file server knows
for \\server\%USERNAME% where the users home directory is actually
located and then you can just use the special [homes] share.

I do this with winbind and the unixHomeDirectory attribute in AD.

JAB.



Hi Jonathan
Thanks for the quick response.

I think I must be missing something here because as far as I can see,
winbindd puts all users into the directory specified in template
homedir. [homes] then picks out the user from there.

At the moment we are using nss-pam-ldapd to grab the unixHomeDirectory
from AD. How do I get winbindd or nss to map unixHomeDirectory to
something I can then map to a windows drive letter?

Cheers,
Steve
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#3 Lukasz Zalewski
July 02nd, 2012 - 01:00 pm ET | Report spam
On 02/07/12 17:20, steve wrote:
On 02/07/12 17:49, Jonathan Buzzard wrote:

On Mon, 2012-07-02 at 17:39 +0200, steve wrote:
Samba4 with Linux and Windows clients wanting to get the same home
folder data.

Hi
A college has students arranged with Linux home directories according to
which year they belong to and which class within that year, a or b or
whatever, they belong to e.g.:
/home2/students/year7/year7a/student1
/home2/students/year7/year7a/student2
...
...
/home2/students/year13/year13a/student2500

To get at the same data on windows, I was thinking of a share for each
of the classes e.g.
[year7a]
path = /home2/students/year7/year7a
read only = No
browsable = No
...
...
[year13a]
path = /home2/students/year13/year13a
read only = No
browsable = No

and mapping a drive letter to the share e.g.
map Z: to \\server\year7a\%USERNAME%




Deal with it through your NSS mechanism so that the file server knows
for \\server\%USERNAME% where the users home directory is actually
located and then you can just use the special [homes] share.

I do this with winbind and the unixHomeDirectory attribute in AD.

JAB.



Hi Jonathan
Thanks for the quick response.

I think I must be missing something here because as far as I can see,
winbindd puts all users into the directory specified in template
homedir. [homes] then picks out the user from there.

At the moment we are using nss-pam-ldapd to grab the unixHomeDirectory
from AD. How do I get winbindd or nss to map unixHomeDirectory to
something I can then map to a windows drive letter?

Cheers,
Steve



Hi Steve,
Have you considered using autofs to do all of the mapping work for you,
so that you have only one /homes/ (or whatever else you want to call it)
to worry about?

L
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#4 Matthieu Patou
July 02nd, 2012 - 03:20 pm ET | Report spam
On 07/02/2012 08:39 AM, steve wrote:
Samba4 with Linux and Windows clients wanting to get the same home
folder data.

Hi
A college has students arranged with Linux home directories according
to which year they belong to and which class within that year, a or b
or whatever, they belong to e.g.:
/home2/students/year7/year7a/student1
/home2/students/year7/year7a/student2
...
...
/home2/students/year13/year13a/student2500

To get at the same data on windows, I was thinking of a share for each
of the classes e.g.
[year7a]
path = /home2/students/year7/year7a
read only = No
browsable = No
...
...
[year13a]
path = /home2/students/year13/year13a
read only = No
browsable = No

and mapping a drive letter to the share e.g.
map Z: to \\server\year7a\%USERNAME%

That would make lots of shares but would make it readable to non admins.

Is there a limit on the number of shares per installation?
Any other ideas of how to go about it? e.g. I thought about OU's but
we do not want to administer from Windows.


Did you thought about making a new directory ie.
/home2/students/data with a link to each real user and then sharing data
like that

[data]
path = /home2/students/data
read only = No
browsable = No

And then use ADUC or ldbedit to specify the connect to attribute and set
it to \\servername\data\%username%

This fields accept a couple of placeholder I let you discover the others
(search engines are your friend).

Matthieu.

Cheers,
Steve





Matthieu Patou
Samba Team
http://samba.org

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#5 steve
July 02nd, 2012 - 05:20 pm ET | Report spam
On 02/07/12 18:50, Lukasz Zalewski wrote:
On 02/07/12 17:20, steve wrote:
On 02/07/12 17:49, Jonathan Buzzard wrote:

On Mon, 2012-07-02 at 17:39 +0200, steve wrote:





Hi Steve,
Have you considered using autofs to do all of the mapping work for you,
so that you have only one /homes/ (or whatever else you want to call it)
to worry about?

L


Hi Lukasz

Yes, that's exactly what we are doing at the moment. Our Linux clients
get their home directory automounted via nfs. It works fine.

What I want is for that same home directory to be mapped to a windows
drive letter. My method of having one share per class works, but would
create over 30 shares. I'm not sure that having this many shares is
advisable. I can find few examples of smb.conf's with more than but a
handful of shares.

Cheers,
Steve
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search