|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| 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 |
|
#5
| ||||
| ||||
| try writing an apple script i did Code: tell application "Finder" try mount volume "smb://domain;username@netbios/share" end try end tell 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 |
|
#6
| |||
| |||
| that still gives me the same problem. it mounts //labserver/student1 not //labserver/student1/stu000001 |
|
#7
| ||||
| ||||
| 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 |
|
#8
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
|
|
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 |