I have a linux box with a samba share that contains my UAE installation and other shared development stuff that I have OS4.1 (and also 3.9 on my 1200T) connect to automatically on start-up.
For 4.1, I created a script called MountSMB in SYS:S/Shell/ with the following commands:
stack 65536
run >nil: *>nil: smbfs workgroup=megaburken2 user=****** password=****** service=//Megaburken-II/UAE device=SMB0: volume=UAE:
I then set the script file protection bit
protect S:Shell/MountSMB0 +s
and added the following to my S:User-Startup
MountSMB0
The samba share then pops up as a disk drive on the desktop (device name SMB0, volume name UAE).