LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-19-2003, 01:48 PM   #1
Drizzt420
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, 02:02 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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, 02:08 PM   #3
Drizzt420
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
 
  


Reply


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 11:43 AM
problem with samba script - not mapping all letters in some computers schneider Linux - Networking 0 05-07-2004 12:42 PM
Samba mapping drives from login script lion Linux - Newbie 0 10-08-2003 07:52 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Samba Logon script not mapping Drives automatically! kofi Linux - Software 0 07-21-2003 03:06 PM


All times are GMT -5. The time now is 12:33 PM.

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