Mailinglist Archive: opensuse (3625 mails)

< Previous Next >
Re: [opensuse] ODF files on SMB/CIFS share
  • From: "David C. Rankin" <drankinatty@xxxxxxxxxxxxxxxxxx>
  • Date: Sat, 28 Jun 2008 00:23:42 -0500
  • Message-id: <4865CADE.5090108@xxxxxxxxxxxxxxxxxx>
Manne Merak wrote:
James Knott wrote:
Manne Merak wrote:
I have some XLS and ODT files on a Windows AD server (CIFS share).
When openning the XLS files using KIO (Konq or Krusader with smb://) OpenOffice pops up and asks for a Win domain password (which I give) and everything opens as expected.
When I do the same for the ODT file I get get an OpenWith popup from KDE. If I navigate to Calc it works. When copying the file to the local drive it works as expected; so the file associations is fine.
Whats going on?

Manne
ps. is there is way to tell OpenOffice to get my Win domain password from KDE or Kerberos or where-ever. Very annoying to have to type it in about 20 times a day.

You can configure the Windows ID and password in "Personal Settings". Click on Interent & Network > Local Network Browser.


Thats how I always do it (they must really add a check box for using the system user and passwd).
But the problem is OO dont use it.

Manne


Manne,

I second GT's (not Grant's) suggestion that you mount the drive instead of accessing it dynamically. I would also suggest you use a batch file to do it (saves typing and you call create a convenient alias in .bashrc) Here is an example of a script that can mount multiple shares and your credentials are contained in a separate file for safe keeping. Just change the variable as needed:

#!/bin/bash

## check_root

if [[ $UID != "0" ]]; then
echo -e "\n\n\tThis program must be run as 'root', you with UID=$UID won't
do.\n"
exit 1
fi

## define variables and mount share 1

SERVER="//zion"
OPTS=$(cat /home/david/bin/mntops_dcr)
SHARE="/config"
MPOINT="/mnt/zion-cfg"

if mount | grep -q "on ${MPOINT} type"; then
echo "${MPOINT} already mounted"
else
if [[ ! -d ${MPOINT} ]]; then
mkdir -p ${MPOINT} >/dev/null 2>&1
fi
mount.cifs ${SERVER}${SHARE} ${MPOINT} ${OPTS}
fi

## define and mount share 2

SHARE="/david"
MPOINT="/mnt/zion-david"

if mount | grep -q "on ${MPOINT} type"; then
echo "${MPOINT} already mounted"
else
if [[ ! -d ${MPOINT} ]]; then
mkdir -p ${MPOINT} >/dev/null 2>&1
fi
mount.cifs ${SERVER}${SHARE} ${MPOINT} ${OPTS}
fi

exit 0


Your credential file "mntops_dcr" would contain:

-o username=david,uid=1000,password=xxxyyyzzz



--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups