Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-19-2003, 02:48 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
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?
Old 07-19-2003, 03:02 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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.
Old 07-19-2003, 03:08 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 2

Original Poster
Rep: Reputation: 0
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic mapping of Samba shares at login on Fedora chaan Linux - Software 2 05-14-2004 12:43 PM
problem with samba script - not mapping all letters in some computers schneider Linux - Networking 0 05-07-2004 01:42 PM
Samba mapping drives from login script lion Linux - Newbie 0 10-08-2003 08:52 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 03:23 PM
Samba Logon script not mapping Drives automatically! kofi Linux - Software 0 07-21-2003 04:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration