LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-30-2005, 10:07 AM   #1
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Rep: Reputation: 15
login script


Hi,
can anyone tell me what i need to put into a bat file for when users login to my PDC, i use samba as the PDC and would like a share to be automatically mounted in windows my computer as a network drive.

the folder I would like mounted would be /PDC/my share

thanks,
steve
 
Old 06-30-2005, 12:09 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Look into the help for the 'net' command under windows.
Code:
net use x: \\server\share
 
Old 06-30-2005, 01:48 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in General as it relates to a windows-machine, and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-30-2005, 03:45 PM   #4
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
With NetWare I'm doing this in my login script to map a drive to my linux box:
@net use V: \\192.168.0.32\STORAGE
 
Old 07-01-2005, 04:47 AM   #5
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Original Poster
Rep: Reputation: 15
im using net use x: \\myserver\file server
but it dont work. the folder file server is in the root directory, am i doing something wrong here?
i can see the client pc execute the script on login so its in the right place, it just dont map the drive to my computer
 
Old 07-01-2005, 08:49 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If it's really called file server, you'll need to put quotes around the argument, as in "\\myserver\file server" (WITH the quotes)
 
  


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
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 10:09 AM
login script nin881 Slackware 3 06-11-2005 02:21 AM
Login script unclejessie77 Programming 5 02-24-2005 12:30 PM
login script notREALly Linux - General 6 11-29-2003 08:23 AM
login script oneringsol Linux - Newbie 2 11-03-2002 08:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration