Click to See Complete Forum and Search --> : Samba problems with OpenOffice


cmayhew
04-24-2004, 09:07 AM
I work at a small store with a Windows network. The server is a Windows XP Pro machine. It has all of our files on it. I am currently running Red Hat 9 and my problem is that when I open the server with the Nautilus file manager and try to access some of the spreadsheets or documents directly over the network I get this message:
"OpenOffice.org" can't open "-filename-" because "OpenOffice.org" can't access files at "smb" locations. No other applications are available to view this file. If you copy this file onto your computer, you may be able to open it."
When I copy it, I am able to open it on my computer, but that could prove to be a hassle. Is there any way to enable samba so that I can access the files directly over the network?
I appreciate everyone's help on this forum! You have all saved my life many times!!!!

chris78
04-24-2004, 12:33 PM
Just a guess but the problem could be that nautilus passes something like "smb://path/filename" to OpenOffice.
If you have that samba directory mounted on your computer nautilus maybe will pass a normal path.


Chris

Hayl
04-24-2004, 12:44 PM
Originally posted by chris78
Just a guess but the problem could be that nautilus passes something like "smb://path/filename" to OpenOffice.
If you have that samba directory mounted on your computer nautilus maybe will pass a normal path.


yes, it will. i have samba shares mounted and it works fine.

cmayhew
04-24-2004, 01:06 PM
bet you saw this one coming:

How do I mount it on my computer?

chris78
04-24-2004, 02:37 PM
indeed :)

Okay you can try


mount -t smbfs //server/share /mountpoint


or see "man smbmount", that should become something like


smbmount //server/share /mountpoint -o username=user,password=pw


Maybe you need to play with the "//" and "/" a little sometimes they need to be "\\" or "\\\\" without known reason.
The "\" is a backslash if its not clearly visible. My font is a bit funny i guess. Maybe no problem for you.

Chris

pezplaya
04-24-2004, 02:43 PM
mount -t smbfs //server/share /local/folder

example:

mount -t smbfs //192.168.0.2/files /mnt/samba

example with including a username and password

mount -t smbfs -o username=YOURUSER,password=YOUR PASSWORD //192.168.0.2/share /mnt/samba

Hayl
04-24-2004, 02:44 PM
Originally posted by cmayhew
bet you saw this one coming:

How do I mount it on my computer?

search teh forums, there are _many_many_ posts on how to mount samba shares both temporarily or permanently each time you boot.