image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old June 26th, 2003, 02:39 PM
Registered User
 
Join Date: Jun 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
pyrojoe333 is on a distinguished road
Arrow mounting network share

I'm working on mounting a network shae via the terminal. I need to write a login script. The way this works is every user has a folder on our server so that every time they log in they can save stuff to their folder. I wlould like to mount this foulder via login script so when they log in this folder appears on their desktop. right now I'm using mount_smbfs as my command and it works kinda. if I type: mount_smb -u stu000001 -d my_domain //labserver/student1/stu000001 ./student it mounts //laserver/student1 and excludes the stu000001 folder. I think it might be because this folder is a folder not a share? what I'm asking is does anybody know how to mount a remote folder or any way to fix this problem other than making the folder a share, and is there a way to do it in command line. OR how would I do it using apple scripts? and how would I set up apple scripts as a login hook?

Jeramiah
Reply With Quote
  #2  
Old June 26th, 2003, 06:05 PM
Registered User
 
Join Date: Jun 2003
Posts: 700
Thanks: 0
Thanked 0 Times in 0 Posts
Lycander is on a distinguished road
If it mounts //laserver/student1 then make a sym-link to the stu000001 folder inside that mount. You'll only need to make the sym-link once, then when student1 is mounted the sym-link will resolve properly to the correct folder. This is just one idea, might not be the best.
__________________
vacant lot
Reply With Quote
  #3  
Old June 26th, 2003, 06:45 PM
WeeZer51402's Avatar
Right 00.1% of the Time
 
Join Date: Dec 2002
Location: Lost in my own unintelligible ramblings
Posts: 473
Thanks: 0
Thanked 0 Times in 0 Posts
WeeZer51402 is on a distinguished road
What are service are you trying to mount through, afp, smb or nfs?
__________________
ON THE WAY:
15" PB 1.67|100|1024 --- 10.4
------------------------------------------
17" iMac G5 1.8|80|512|BT --- 10.3.9
FrankenMac G4 500|55|640 --- 10.3.9
PowerMac 9600 300|4|512 --- 1.2
eMachine 500is 500|4.3|196 --- OpenStep 4.2
Server 2.3|260|512 --- FedoraCore
Reply With Quote
  #4  
Old June 26th, 2003, 06:46 PM
WeeZer51402's Avatar
Right 00.1% of the Time
 
Join Date: Dec 2002
Location: Lost in my own unintelligible ramblings
Posts: 473
Thanks: 0
Thanked 0 Times in 0 Posts
WeeZer51402 is on a distinguished road
oh nevermind i didnt red you post carefully enough its smb
__________________
ON THE WAY:
15" PB 1.67|100|1024 --- 10.4
------------------------------------------
17" iMac G5 1.8|80|512|BT --- 10.3.9
FrankenMac G4 500|55|640 --- 10.3.9
PowerMac 9600 300|4|512 --- 1.2
eMachine 500is 500|4.3|196 --- OpenStep 4.2
Server 2.3|260|512 --- FedoraCore
Reply With Quote
  #5  
Old June 26th, 2003, 06:53 PM
profx's Avatar
ill never 4get watsisname
 
Join Date: May 2001
Location: Auckland New Zealand
Posts: 386
Thanks: 0
Thanked 0 Times in 0 Posts
profx is on a distinguished road
try writing an apple script

i did

Code:
tell application "Finder"
	try
		
		mount volume "smb://domain;username@netbios/share"
		
	end try
end tell
that will promt for a password if needed or you can set up a .nsmbrc file to bypass the password.

search the forums
__________________
| PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge
Reply With Quote
  #6  
Old June 26th, 2003, 07:03 PM
Registered User
 
Join Date: Jun 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
pyrojoe333 is on a distinguished road
that still gives me the same problem. it mounts //labserver/student1 not //labserver/student1/stu000001
Reply With Quote
  #7  
Old June 26th, 2003, 07:33 PM
WeeZer51402's Avatar
Right 00.1% of the Time
 
Join Date: Dec 2002
Location: Lost in my own unintelligible ramblings
Posts: 473
Thanks: 0
Thanked 0 Times in 0 Posts
WeeZer51402 is on a distinguished road
is 'stu000001' listed as hidden in /etc/smb.conf?
__________________
ON THE WAY:
15" PB 1.67|100|1024 --- 10.4
------------------------------------------
17" iMac G5 1.8|80|512|BT --- 10.3.9
FrankenMac G4 500|55|640 --- 10.3.9
PowerMac 9600 300|4|512 --- 1.2
eMachine 500is 500|4.3|196 --- OpenStep 4.2
Server 2.3|260|512 --- FedoraCore
Reply With Quote
  #8  
Old June 26th, 2003, 08:25 PM
Registered User
 
Join Date: Jun 2003
Posts: 700
Thanks: 0
Thanked 0 Times in 0 Posts
Lycander is on a distinguished road
I think you're only exporting student1 in the smb config. So there's 2 ways you can approach this:

* The way I described above, after mounting the student1 folder, check to see if a sym link exists that will point to the user's folder within student1, create it if it doesn't exist.

* Create a script that will update you smb config on the server side. This way whenever you have a new user, or want to run a batch to create many users, it'll update the smb config by adding the student00000# folder to the shares exported. I'm basically saying, make a tool that'll go and make the shares for you rather than manually make them by hand.
__________________
vacant lot
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i share iCal calenders over a network garymum4d Networking & Compatibility 6 June 30th, 2003 10:11 AM
How can I share AdressBook data over network? eric halfabee Networking & Compatibility 1 May 22nd, 2003 07:32 AM
Can AppleScript do network drive mounting like this? Snowball Software Programming & Web Scripting 1 February 25th, 2003 04:56 PM
Mounting Win2k share - I GOT IT! hazmat Mac OS X System & Mac Software 1 March 31st, 2002 06:42 AM
OS X & mounting AppleTalk or Netware network drives erdunbar Mac OS X System & Mac Software 3 June 27th, 2001 01:13 PM


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


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.