LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-13-2009, 10:02 AM   #1
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Rep: Reputation: 16
Openoffice saving to cifs


Hi,

I have the following problem: Slackware 12.2, openoffice 3.0.1. When I want to save a file from openoffice to mounted cifs directory I get the following error:
Error saving the document. Object is not accessible. The object can not be accessed due to insufficient user rights.

But I can write to this directory for example with copy, that is no problem.

My mounting command is:
mount -tcifs -ocredentials=/root/.creds,uid=szaboa,nobrl,rw //router/szaboa/privat/munka2 /home/szaboa/diatech/munka2

What is the problem?

Thank you for the help.
 
Old 03-13-2009, 02:00 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
It sounds like openoffice can't write. Go figure out it's permissions. check the binaries. If some things are started as root they drop to user nobody
 
Old 03-13-2009, 02:55 PM   #3
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by business_kid View Post
It sounds like openoffice can't write. Go figure out it's permissions. check the binaries. If some things are started as root they drop to user nobody
I have checked the permissions of the binaries: scalc, swriter, soffice and soffice.bin. All have the permissions 755, the owner is root. What should be they? Or which files must I look more for?
 
Old 03-13-2009, 07:40 PM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
Does it change if you add "umask=0000" to the mount options?
 
Old 03-13-2009, 07:54 PM   #5
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: 16
No change, the problem ist hold.
 
Old 03-14-2009, 07:21 AM   #6
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
I did a quick test with OpenOffice 3.0.1 Build:9379 Writer, and it works just fine.

My fstab has this for the share
Code:
//server/folder /mnt/folder cifs credentials=/home/keith/.config/samba.creds,rw 0 0
//server/folder & /mnt/folder are truncated in the above code sample. /mnt/folder is chown'd to keith:user, keith is a user on the server.

You can try adding/changing some options on the samba server, create mask =, directory mask =, inherit permissions = Yes, inherit owner = Yes, force user=.
 
Old 03-14-2009, 01:42 PM   #7
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: 16
Thanks, my code is:

mount -tcifs -ocredentials=/root/.creds,uid=szaboa,nobrl,rw //router/szaboa/privat/munka2 /home/szaboa/diatech/munka2

where the /home/szaboa/diatech/munka2 chown'd to szaboa:users and the user szaboa is a user on the server. I can check/change the samba options on the server but on Monday.

My OpenOffice version is: OOP 3.0.0 build 9358.
 
Old 03-16-2009, 02:59 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
What does pstree -u show? Who is running openoffice?
 
Old 03-17-2009, 03:01 AM   #9
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by business_kid View Post
What does pstree -u show? Who is running openoffice?
Of course me, szaboa.
 
Old 03-19-2009, 02:15 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Try chmodding your mount place for 777 temporarily. uid should be numeric value, shouldn't it?
 
Old 03-19-2009, 05:15 PM   #11
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Alien_Hominid View Post
Try chmodding your mount place for 777 temporarily. uid should be numeric value, shouldn't it?
I chmodded for 777 the mount place but no change. I don't understand the second item, uid, what does it mean here?

But I must add some more informations to the problem: I have Debian also on this machine, I mount under Debian with the same command and there is no such problem, I can save to the mounted directories with Openoffice, the Openoffice on Debian has also the same versionnumber as on Slackware.

Last edited by aszabo; 03-19-2009 at 05:18 PM.
 
Old 03-20-2009, 06:06 AM   #12
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
uid - user identifier (numeric value)

man mount:
Quote:
uid=value and gid=value
Set the owner and group of the root of the file system (default:
uid=gid=0, but with option uid or gid without specified value,
the uid and gid of the current process are taken)
If it works in debian, are samba versions the same in both distros?
 
Old 03-20-2009, 06:19 AM   #13
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by Alien_Hominid View Post
uid - user identifier (numeric value)
And to get it:

as user szaboa: "echo $UID", or you can use for example 'grep szaboa /etc/passwd | cut -d ":" -f 3' (the uid is the third field in file /etc/passwd).

It will be most probably 1000, because that's the default value that "adduser" command will give for the first normal user added to your system.
 
Old 03-20-2009, 06:51 AM   #14
aszabo
Member
 
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Alien_Hominid View Post
uid - user identifier (numeric value)

man mount:


If it works in debian, are samba versions the same in both distros?
But according to the man mount.cifs:
Excerpt from "man mount.cifs":

"uid=arg
sets the uid that will own all files on the
mounted filesystem. It may be specified
as either a username or a numeric uid.
This parameter is ignored when the target
server supports the CIFS Unix extensions."

Not only uid-number it can be username also.


The samba versions:
Slackware 3.2.5
Debian 3.2.4

And yet anything: I can't save only from Openoffice, from another applications no problem, I can copy to the mounted directories any files without problems.
 
Old 03-20-2009, 12:45 PM   #15
+Alan Hicks+
Member
 
Registered: Feb 2005
Distribution: Slackware
Posts: 72

Rep: Reputation: 55
Then the problem is definitely with OpenOffice.org. Since this isn't included with Slackware, you had to have gotten it elsewhere. It's possible you got a bad build or something. Grab the latest build script from www.slackbuilds.org and try that. Let us know if that fixes the problem, or if it persists.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: OpenOffice.org Basic crash course: Saving user settings LXer Syndicated Linux News 0 09-17-2008 02:00 AM
Saving files to 1.44 floppies with Save As feature in File menu of OpenOffice Writer ligriv Linux - Newbie 1 06-17-2008 01:23 AM
SOLVED - Error when saving OpenOffice file to NFS share jlinkels Debian 0 08-07-2007 09:10 PM
openoffice crashes when saving certain exel files oily_rags Linux - Software 0 10-16-2004 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration