Click to See Complete Forum and Search --> : Linux and WinXP(A differant question)


aceracer24
07-09-2002, 08:25 AM
OK I have Suse 8.0 set up as a domain control and I have 2 winXP clients. All is working great. Even using Suse as a share for the internet. My problem is that when I log into anyone of of my xp accounts on either win box(my wife and son have accounts as well) I get a notepad document when it logs in. It's always the same thing...this is for both computers on any account. I have tried deleteing both linux user and XP user. It goes away the first time i log in but the second time i log in it comes up again. I THINK has has to do the the entry in Samba: logon script= ????? I don't understand what this does exactly. In my default smb.conf it has:
logon script = %U.bat (This i know is for user)
logon script = %m.bat (this I know is for machine)

It also says that any logon script must go in the netlogon directory. Ok but what script?? XP uses .cmd and there is a login.cmd and a usrlogin.cmd located in c:\windows. I tried putting this on linux in the netlogon directory and pointing the smb.conf to this script: logon script = login.cmd (tried usrlogin.cmd also) but it did nothing. Guess what I am asking is HOW DO I GET RID OF THE DOCUMENT THAT OPENS EVERY DAMN TIME NO MATTER WHAT I DO?????
I tried commenting out both script entries and I tried it with the default .bat but no matter what i do i keep getting the document to open. Also I know there is suppose to be a way to log into 2 differant computers with the same account WITHOUT having the same desktop settings. One computer has jedi knights II and the other computer does not but I still get the shortcut icon when i log in on the coputer that does NOT have jedi loaded on it obviously cause all my settings get saved to the same user account on linux but isn't there a way to prevent this? Anyway I would appreciate some in site on this. I have searched accross the internet but not found an answer. Thank you

mrpsycho
07-09-2002, 08:42 AM
I have the same problem with the script not being executed upon login when stored on the samba netlogon share. I hope someone solves this for you (hence me also).

The desktop shortcut is being installed for the current user by the game to the profile that is being stored on the Samba server. If you only want the shortcut to appear on the machine with JKII installed and not on every machine for that user then it needs to go in the local machine -> all users desktop profile not in the current users profile. You do this by right clicking the start button and opening the menu in explorer for the current user and all users (may need to be an admin to do this). You then just move the shortcut menu across, it will still appear for your user but not on other machines.

Chris.

aceracer24
07-12-2002, 12:16 PM
I can see this is not a favorite subject since noone bothered to help me out. PLEASE....anyone ....help!!!

edgepak
07-12-2002, 01:14 PM
Ok, first of all, just use a .bat file for the netlogon, there is no reason to use .cmd that i am aware of (as a windows network admin -- 95/98/nt/2k/xp clients all work fine with .bat)

Second of all, i think you didn't get answers because you didnt offer enough information. What is a 'notepad document'?? Do you get a blank text file, do you get the logon script opened in notepad, does notepad open and is filled with garbage, what happens exactly??

If you need help writing a proper login script for an XP machine, i'd be happy to help as well.

Example:

@echo off
if "%WINDIR%"=="" goto ENDE
echo Loading Login Script...
rem *** Aufruf von Login Commands
yourcommandshere
Exit

Try this. This login script works! (deleting the word yourcommandshere first) and see if you get the same problem. Then add commands one by one until it starts acting up.

I'd be happy to help more, but i'm not on these forums often enough, just mail me at chris.meidinger@it-connect.de

PS: if this helped you, i have a couple of linux questions regarding samba, similar stuff, but on the linux side, and if someone found this helpful and would help me with some groundwork, please mail.

Cheers,

Chris