Hello,
I have a problem with Samba and I absolutely don't know how to solve it.
Samba version: 2.2.8a
Linux version: Redhat 9.0
Description of the problem:
In Samba configuration I use:
include = /etc/samba/%U.conf
and services as follow:
[%U]
comment = Home directory (%U) (%u)
path = /public/%U
and other else according to a user.
When I am connecting to Samba Server from PC, everything is all right. Each
user gets their services.
But when I am connecting to Samba Server from Windows Terminal Server, it
doesn't work properly.
It works like this:
User1 = celnici
User2 = zujar
Both of these users have also the same user name in Linux.
1. I connect to WindowsTerminalSession as user1(celnici). After "find
computer" I can find and see Samba Server and I get all shares for user
"celnici" (services celnici comment = Home Directory (celnici)
(celnici))
2. I connect to WindowsTerminalSession as user2(zujar). After "find
computer" I can find and see Samba Server and I get all shares for user
"zujar" (services zujar comment = Home Directory (zujar) (zujar))
3. I am back on WindowsTerminalSession celnici, and I refresh the window
with Samba Server. Still everything is OK.
(services celnici comment = Home Directory (celnici) (celnici))
4. I am back on WindowsTerminalSession zujar, and I refresh the window with
Samba Server. NOW I CAN SEE THE SHARES FOR celnici, even as I am connected
as zujar.
(services celnici comment = Home Directory (celnici) (zujar))
And that's the problem, which I can't understand. Can you help me,
please?
Radek Zuja
On Mon, 2003-06-09 at 17:57, Radek ?uja wrote:> Hello, > > I have a problem with Samba and I absolutely don't know how to solve it. > > > Samba version: 2.2.8a > Linux version: Redhat 9.0 > > Description of the problem: > > In Samba configuration I use: > > include = /etc/samba/%U.conf > > and services as follow: > > [%U] > comment = Home directory (%U) (%u) > path = /public/%UThis looks like a very bad idea. Samba's handling of %U is sub-optimal, as you have found. I'm certain this kind of configuration is almost never tested - what is wrong with the 'homes' service? You can use %u in the path, if you want. The reason %U doesn't work it that it tends to be a global, per connection, and windows terminal server opens only one connection to the server. Even with newer versions of Samba which get %U working a little better, the share list is global. I expect this configuration to become less, rather than more supported in future. (The compromises required for some of these configurations may prove too costly in future). Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20030609/fa542ad1/attachment.bin