LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mapping a SAMBA share with a login script (https://www.linuxquestions.org/questions/linux-software-2/mapping-a-samba-share-with-a-login-script-74119/)

Drizzt420 07-19-2003 01:48 PM

mapping a SAMBA share with a login script
 
If I type this in a command prompt:

net use I: \\linux1\samba /USER:MYDOMAIN\Administrator password

the command completes successfully and I connect to my share. However, when I try to run it as a login script I get an incorrect password message. I retype the same password as it is in my script and it maps the drive. Why do I have to retype the password when running the exact same command as a login script, when it works perfectly any other time?

david_ross 07-19-2003 02:02 PM

Check the end of line character of you script. Give yourself write access to the samba box and create the file in windows then copy it across via the share to over come this.

Drizzt420 07-19-2003 02:08 PM

The script was written in notepad and is used as a login script that is applied to the default domain policy of a Win2k domain. The script needs to reside in the sysvol directory of the domain controller. I can copy the text directly from the script and paste it into the command prompt of a win2k box and connect just fine. but when the script runs at logon it says bad password. retyping the password then maps the drive correctly


All times are GMT -5. The time now is 02:14 PM.