Re: [Samba] logon script not working

2005-06-24 Thread Mark Sarria

Matt,

Just curious, why are you mapping the profiles?

in almost all situations you would hide the profile share. I think what you 
intended to map is a share folder, not the users profile share.


if this is a windows 98 machine then you would need to add

net use H:\\server\home

to map the home folder, on XP it maps automatically

--mark

- Original Message - 
From: "Matt Schwartz" <[EMAIL PROTECTED]>

To: 
Sent: Friday, June 24, 2005 4:30 PM
Subject: [Samba] logon script not working


I cannot figure out why my logon script does not work.  Here are my 
settings.  Here is my smb.conf:


login script = netlogon\logon.bat
[netlogon]
comment = Network Logon Service
path = /home/netlogon
admin users = @ntadmins
write list = @ntadmins
guest ok = Yes
locking = No

Here is my logon.bat:

@echo off
net time \\servername /set /yes
net use p: \\servername\profiles\%username%

When I execute logon.bat from a command line, the drive is properly 
mounted.  I want this script to execute at logon time like it is supposed 
to.  Any ideas as to why this fails?

Thanks,
Matt


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


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


Re: [Samba] logon script not working

2005-06-24 Thread Guido Lorenzutti

login script = netlogon\logon.bat

wrong!

login script = logon.bat

right :)

Matt Schwartz escribió:

I cannot figure out why my logon script does not work.  Here are my 
settings.  Here is my smb.conf:


login script = netlogon\logon.bat
[netlogon]
comment = Network Logon Service
path = /home/netlogon
admin users = @ntadmins
write list = @ntadmins
guest ok = Yes
locking = No

Here is my logon.bat:

@echo off
net time \\servername /set /yes
net use p: \\servername\profiles\%username%

When I execute logon.bat from a command line, the drive is properly 
mounted.  I want this script to execute at logon time like it is 
supposed to.  Any ideas as to why this fails?

Thanks,
Matt




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


Re: [Samba] logon script not working

2003-03-16 Thread Stéphane Purnelle
Le dim 16/03/2003 à 19:00, Woerns Urstmann a écrit :
> Hi,
> 
> my logon.bat was working for weeks now (since i created it) - and recently i 
> recompiled my samba with ldap support. now ldap and everything works really 
> well, but: the logon.bat won't get executed! i tried changing the folder, 
> changing the rights of the file, renaming it and everything. but the thing 
> won't execute! samba is not givin any error, nor does my winxp client.
> when i browse to \\linux\netlogon and double click logon.bat everything gets 
> mapped wonderful. but not automatically.
> 
> -rwxrwxrwx1 root root  471 Mar  9 
> 15:12 /samba/netlogon/logon.bat
> 
> smb.conf:
> 
> domain logons = Yes
> logon script = logon.bat
> [netlogon]
> comment = Domänenanmeldedienst
> path= /samba/netlogon
> public  = no
> locking = no
> writeable   = no
> browseable  = no
> 
> #also tried the following:
> #[netlogon]
> #comment = Network Logon Service
> #path = /samba/netlogon
> #public = no
> #writeable = no
> #browseable = no
> #[netlogon]
> #comment = Network Logon Service
> #path = /samba/netlogon
> #write list = @101
> #create mask = 0640
> #hide unreadable = Yes
> 
> thanks a log
> woerns

The samba schéma contain a scriptpath field wich contain your command.
 

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