Koozali.org: home of the SME Server

How to access windows shared folder from SME? (Solved)

miguelb

How to access windows shared folder from SME? (Solved)
« on: June 15, 2007, 05:27:39 PM »
Hi,

I need to access a windows shared folder from SME7...
I would like to have that shared folder maped in SME.

Can anyone help me out with this?

Thanks
Miguel

Offline mmccarn

  • *
  • 2,651
  • +10/-0
How to access windows shared folder from SME? (Solved)
« Reply #1 on: June 19, 2007, 05:36:49 AM »
Code: [Select]
mount -t cifs -o user=<username>,password=<password> //<winbox>/<sharename> /mnt/<emptydir>

<username>, <password>: login credentials for the windows box
<winbox>: name or ip of the windows box
<sharename>: name of the network share hosted on the windows box
<emptydir>: you must "mount" things into empty directories in linux; be sure to use an empty one, or create an empty one to use.

I started using "-t cifs" after having trouble with "-t smbfs" transferring files over 2GB in size.

You can get a drive to re-mount by figuring out the command you need to run, then adding it to /etc/rc.d/rc.local.

Here's a post to the complete syntax for the cifs mounter: http://www.die.net/doc/linux/man/man8/mount.cifs.8.html

I urge you to learn how to use the "credentials=filename" option rather than "user=<username>,password=<password>" if you want anything like security on your network...

miguelb

How to access windows shared folder from SME? (Solved)
« Reply #2 on: June 19, 2007, 06:48:40 PM »
Many thanks for teh reply!

Miguel