Re: [Samba] RE: xp doesnt log out

2003-01-22 Thread Jonathan Dean


The postexec tag allows code to be executed on the samba server not on
the workstation.
The best idea would be to use a logoff script on the windows machine, but
I think with xp this requires the use of group policies.
You could always include the 'net use' command as the first command in a
logon script.
smb.conf allows you to specify a logon script. See,
http://samba.mirror.ac.uk/samba/docs/man/smb.conf.5.html#LOGONSCRIPT
Hope that helps,
Jon.
At 17:19 22/01/2003 +0100, Sebastian Schinzel wrote:
> Just another thought - You
could try running 'net use * /d' before log off.
Is it possible to do this with samba on the server and e.g. the postexec
tag?
Thanks for your answers Jon! 
-- 
Sebastian Schinzel

-- 
Jonathan Dean
[EMAIL PROTECTED] www.jondean.com
Dept. Computer Science, University of Exeter, UK.
[EMAIL PROTECTED]   www.dcs.ex.ac.uk
Network Manager, Dean UK Networks.
[EMAIL PROTECTED] www.deanuk.net




Re: [Samba] RE: xp doesnt log out

2003-01-22 Thread Jon Niehof
'%u' is samba specific. Although you would probably be able to use 
'\\server\%username%' (This would use the windows username).
That is, \\server\%%username%
or, in a batch file, \\server\%%%username%
Tricky buggers, those %'s :)

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] RE: xp doesnt log out

2003-01-21 Thread Jonathan Dean


'%u' is samba specific. Although you would probably be able to use
'\\server\%username%' (This would use the windows username).
Just another thought - You could try running 'net use * /d' before log
off.
Jon

At 18:23 21/01/2003 +0100, Sebastian Schinzel wrote:
> Try forcing users to reboot
the xp machines rather than just logging off.
Rebooting does not help. Even shutting down a client and waiting about
a
hour does not help.
I have already tried this a couple of times.
What about the link to the server? Do you think i should better use
something like "\\server\%u"? Does Windows know something like
%u, or is
this samba-specific?
-- 
Sebastian Schinzel

-- 
Jonathan Dean
[EMAIL PROTECTED] www.jondean.com
Dept. Computer Science, University of Exeter, UK.
[EMAIL PROTECTED]   www.dcs.ex.ac.uk
Network Manager, Dean UK Networks.
[EMAIL PROTECTED] www.deanuk.net




[Samba] RE: xp doesnt log out

2003-01-21 Thread Sebastian Schinzel
> Try forcing users to reboot the xp machines rather than just logging off.

Rebooting does not help. Even shutting down a client and waiting about a
hour does not help.
I have already tried this a couple of times.
What about the link to the server? Do you think i should better use
something like "\\server\%u"? Does Windows know something like %u, or is
this samba-specific?

-- 
Sebastian Schinzel

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] RE: xp doesnt log out

2003-01-21 Thread Jonathan Dean
Try forcing users to reboot the xp machines rather than just logging off.

On 20 Jan 2003 Sebastian Schinzel wrote:

Hi everyone,

i have set up a server with samba-2.2.3a-12 (Debian Woody) for a network
that is shared with about 100 schools. There are about 50 Clients
(WinXP) with only one local user. They are all in the same workgroup.
The server has security=user and the about 100 usernames from the
schools.
So a kid from a given school logs into the Client with the local user
(e.g. user=pc, pass=pc), but has to give a special (school-based)
username and password if it wants to connect to the shares from the
server (There is a link to \\server\ at the desktop). So far so good.

Problem:
1. school1 logs into the server with username=school1, gets its
/home/schoo1 on the server, does its work and logs out of the client

2. school2 logs into the same client, connects to the server with
username=school2 and gets his own /home/school2 on the server and _also_
the /home/school1 from the previously logged in school1. school2 has
then read/write access to school1! This just happens sometimes on some
clients.

I am not very experienced with samba, but I really dont understand, why
this happens. Is this a known problem of xp, that it does remember
username/password from any further logins, or is it my fault with a bad
smb.conf?

Is eventually the link to "\\server\" wrong? Should it better be
something like "\\server\%u" ,or "\\server\~" ?

Btw: I will convert the network in a domain, but it has to run with the
workgroup for the next 2-3 weeks, so i hope you guys have an answer for
this.

Thanks in advance,

-- 
Sebastian Schinzel

-- 
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba