PDA

View Full Version : OT: Linux reading from Windows share



JJZolx
2007-07-10, 10:59
At work we have several Windows IIS web servers and a Linux server running AWStats (web log analytics). Right now we copy the IIS web logs over to the Linux server and run AWStats on the copied web logs. I'm wondering if this is necessary.

Does anything special need to be installed on either Linux or Windows to read the files directly from a Windows share via UNC path?

If Windows authentication is needed to access the files, what needs to be installed on the Linux system?

To read files from a network share in Linux is it necessary to 'mount' the share?

Benway
2007-07-10, 11:27
At work we have several Windows IIS web servers and a Linux server running AWStats (web log analytics). Right now we copy the IIS web logs over to the Linux server and run AWStats on the copied web logs. I'm wondering if this is necessary.

Does anything special need to be installed on either Linux or Windows to read the files directly from a Windows share via UNC path?

If Windows authentication is needed to access the files, what needs to be installed on the Linux system?

To read files from a network share in Linux is it necessary to 'mount' the share?


Use smbmount (or mount -t smbfs ... or similar) to mount a windows share in linux. You can add in a username/password
to the (smb)mount command although not sure if its secure
to do so (plain text passwords over the wire and visibility
to ps and in /proc etc...).

See www.samba.org for help with samba or your distros help/forums.

Nothing to stop mapping a linux samba share on the windows
machines either.

If the logs are on a webserver can you get at them via http or ftp with wget or perl etc... ?

Or get the iis server to push them with ssh/scp once they are rotated.

JJZolx
2007-07-10, 11:38
Use smbmount (or mount -t smbfs ... or similar) to mount a windows share in linux. You can add in a username/password to the (smb)mount command although not sure if its secure to do so (plain text passwords over the wire and visibility to ps and in /proc etc...).

Thanks. All systems are on the same local network, so security across the wire isn't a big concern.

Linzer
2007-07-10, 20:08
At work we have several Windows IIS web servers and a Linux server running AWStats (web log analytics). Right now we copy the IIS web logs over to the Linux server and run AWStats on the copied web logs. I'm wondering if this is necessary.

Does anything special need to be installed on either Linux or Windows to read the files directly from a Windows share via UNC path?

If Windows authentication is needed to access the files, what needs to be installed on the Linux system?

To read files from a network share in Linux is it necessary to 'mount' the share?

You could also run AWStats on your IIS boxes...just a thought.

nobspangle
2007-07-17, 14:45
try to use

mount -t cifs
rather than smbmount or smbfs.

To do this you need to have samba installed on your system and have cifs (or smbfs) compiled into your kernel.