mount -t cifs -o user=reader%XXPASSWDXX //harvey/harvey-c /mnt/ harvey-c

The directory /mnt/harvey-c has to be created ahead of time.
The user reader needs to have an account on that windows machine.

You'll need a windows user account username and password.  If you
don't use passwords for windows shares I think you can just leave out
the %SECRET_PASS, but I'm not sure exactly.

Once the device is mounted locally you can read/write to/from it in
scripting, then umount it at the end of the script.
Thanks for the reply, I think I didn't make the problem clear enough.
I have a usb server running on my network with 2 external disks connected to it. I can read and write to them using smb://lkg5f.homenet.com/ DISK 2/ with
no problems.
I need to mount these drives so that I can run a backup script to backup all of my gentoo system. I have tried smbmount and mount -t smbfs but even after reading man mount and smbmount I am still unclear as to the correct format.

mount -t smbfs //lkg5f.homenet.com/DISK 2 /mnt/someplace

if the share is password protected, after the smbfs, add -o username=whatever,password=whatever

only root will be able to do this. You might want to try to avoid spaces in your share names in the future...just makes things easier on the unix side.
paul
--
This message has been sent using kmail with gentoo linux
--
gentoo-user@gentoo.org mailing list


--
gentoo-user@gentoo.org mailing list

Reply via email to