Hi everybody,
I have a samba server member for file sharing configured like below. Domains controllers are on samba too.
Every servers are on samba 4.5.3.
When I created the domain I activated rfc2307.
Now I think rfc2307 was a bad idea...
But if he try to access to the file server (from a Windows 10 client),
he get an "Access refused".
I'd like this behavior to permit computers to access to shares for
installing application with GPO set on DC and applied to computers
instead of users section in the GPO.
On Wed, 15 Mar 2017 14:23:23 +0200
Arnaud Cruzel via samba <samba@lists.samba.org> wrote:
Hi everybody,
I have a samba server member for file sharing configured like
below.
Domains controllers are on samba too.
Every servers are on samba 4.5.3.
When I created the domain I activated rfc2307.
Now I think rfc2307 was a bad idea...
You could use the winbind 'rid' backend instead, this will mean that
your users will get different 'IDs', so you will have to change the
ownership of any files and directories stored on the fileserver.
You will also have to use 'template' lines in smb.conf for Unix home
dirs and shell.
Rowland
# idmap config IFPOAD:backend = ad41,42c41,42
# idmap config IFPOAD:schema_mode = rfc2307
# idmap config IFPOAD:range = 10000-99999
idmap config IFPOAD : backend = rid45,46c45,46
idmap config IFPOAD : range = 10000-999999
winbind nss info = template47a48,50
template shell = /bin/bash
template homedir = /Users/%U49d51
# winbind nss info = rfc2307
# unix extensions = no75c77
username map = /usr/local/samba/etc/user.map
by \\servername\shareBut if he try to access to the file server (from a Windows 10
client),
he get an "Access refused".
How did he access the share. \\servername\share or \\servername.dnsdom.tld\share
(or by \\ip )
Can he access \\servername without the share.no it can't
And the Win10 eventid + discription of the "Access refused" would beThere is no event ID neither descriptions. I don't find any entry on
nice.
by exemple for the share 'Shares' :
The "Share Security" settings are?
It should work with rfc2307, i works fine for meYes I don't say it's not working. The problem is for set a GPO to
ADDC 4.5.3 + members 4.5.3/4.6.0
All servers in rfc2307 mode.
But i did set extra things, so before i advice something i need the
above info first.
Greetz,
Louis
For Administrator / Domain Admins / System / Creator Owner = FullAre not available on the "Share security" but are on the "Security"
Control on folder, subfolders and files
For Administrator / Domain Admins / System / Creator Owner = Full Control on folder, subfolders and files
For Authenticated Users / Domain Users = Read and Execute on this folder only
-----Oorspronkelijk bericht-----
Van: Arnaud Cruzel [mailto:a.cruzel@ifporient.org]
Verzonden: woensdag 15 maart 2017 16:40
Aan: L.P.H. van Belle; samba@lists.samba.org
Onderwerp: Re: [Samba] Allow user without uidNumber to access to a Samba member file server
Le mercredi 15 mars 2017 à 15:16 +0100, L.P.H. van Belle via samba a écrit :
But if he try to access to the file server (from a Windows 10
client),
he get an "Access refused".
How did he access the share. \\servername\share or \\servername.dnsdom.tld\shareby \\servername\share
(or by \\ip )
Can he access \\servername without the share.no it can't
And the Win10 eventid + discription of the "Access refused" would beThere is no event ID neither descriptions. I don't find any entry on
nice.
Windows event viewer.
The "Share Security" settings are?by exemple for the share 'Shares' :
For Administrator / Domain Admins / System / Creator Owner = Full
Control on folder, subfolders and files
For Authenticated Users / Domain Users = Read and Execute on this
folder only
It should work with rfc2307, i works fine for meYes I don't say it's not working. The problem is for set a GPO to
ADDC 4.5.3 + members 4.5.3/4.6.0
All servers in rfc2307 mode.
deploy applications, I have to deploy it by user GPO.
If I want to do that by computer GPO I have to set uidNumber to all computers. I'm lazy to do that :)
And now with Windows 10 who don't allow to set rfc2307 easily with ADUC
it become very complicate to set uidNumber manually for each user.
But i did set extra things, so before i advice something i need the
above info first.
Greetz,
Louis
And now with Windows 10 who don't allow to set rfc2307 easily with
ADUC it become very complicate to set uidNumber manually for each
user.
OK, I tried that. After what there is no long problems for access to
file server by an user without uidNumber. But now it's impossible for
unix client to access to samba shares on this server.
I think because of uid are differents. For information I didn't have
to change shares
owner, the server kept the same uids for users (I think because of
caching ?)
On Wed, 15 Mar 2017 17:13:43 +0200
Arnaud Cruzel <a.cruzel@ifporient.org> wrote:
Sorry I said Unix client, but I'd like to say unix machine.OK, I tried that. After what there is no long problems for access
to
file server by an user without uidNumber. But now it's impossible
for
unix client to access to samba shares on this server.
You never mentioned Unix users
The 'rid' backend works by calculating the users ID from its Windows
RID, Unix users do not have a RID, so they don't get an ID.
If you have Unix users, you will have to create the users in AD,
set the Unix machines up as a domain member (info available on the
Samba wiki)
and remove the users from the Unix machine (they cannot be
in /etc/passwd and AD). You could also return to using the 'ad'
backend, but you would still have to make the Unix machines domain
members.
Yes I heard them... from unix and Mac OSx domains users :D.
I think because of uid are differents. For information I didn't
have
to change shares
owner, the server kept the same uids for users (I think because of
caching ?)
Wait until the cache expires and wait for the screams :-)
Rowland
Le mercredi 15 mars 2017 à 16:08 +0000, Rowland Penny via samba a
écrit :
On Wed, 15 Mar 2017 17:13:43 +0200
Arnaud Cruzel <a.cruzel@ifporient.org> wrote:
Sorry I said Unix client, but I'd like to say unix machine.
An active directory user connected on an unix machine member of domain
seem to be unable to access to shares when the share server have idmap
set with rid.
Wait until the cache expires and wait for the screams :-)Yes I heard them... from unix and Mac OSx domains users :D.
I locked my office door !
Windows users kept cool.
So I think I have no choice in a mixed environment Mac OSx, Windows
and Linux, I have to set uidNumber...
Arghhh
But You told about a patch in your other mail for setting
automatically uidNumbers ?? Where is it ? I want it.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 476 |
Nodes: | 16 (2 / 14) |
Uptime: | 152:15:26 |
Calls: | 9,512 |
Files: | 13,636 |
Messages: | 6,132,019 |