Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Network & Security
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Network & Security Any network and / or security related questions should be posted in here.

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-Apr-2008, 07:09
thestig
Guest
 
Posts: n/a
Default

i have mounted a windows server to which i can read and write. however, i am having problem with some files/ for instance, i am making a spread sheet with open office, and saving it as excel format (.xls), i can save it to the drive, however, when i open it back up again it's up as read-only.

to get around this i tried logging in to console and su to root and did chmod 777 -R /mnt/server folder im saving it to....

this didn't work, after opening it was still read only.

so i su to root again and did chmod 777 /mnt/server/.....file.xls and this has worked. however, every time i save a file i don't want to be doing this, why is it doing this, and is there a way of getting round it?

i have mounted the server to a home directory using cifs/samba. i don't mind changing permissions to 777 for me, since im the only user on linux using it, and it's not a folder with system files in so no security issue really.

any help/ideas much appreciated.

Ross.
  #2 (permalink)  
Old 21-Apr-2008, 07:27
swerdna
Guest
 
Posts: n/a
Default

Shouldn't be doing that from a windows server. Curious. Is this a cifs mount i.e. a mapping of a windows share. If yes then is the share on windows marked "allow network users to alter files" and those "full control" boxes ticked or like that? I imagine it is so that's probably not a help, but check anyway.

Swerdna
  #3 (permalink)  
Old 21-Apr-2008, 08:28
thestig
Guest
 
Posts: n/a
Default

Quote:
Shouldn't be doing that from a windows server. Curious. Is this a cifs mount i.e. a mapping of a windows share. If yes then is the share on windows marked "allow network users to alter files" and those "full control" boxes ticked or like that? I imagine it is so that's probably not a help, but check anyway.

Swerdna
[/b]
i don't have access to server at the moment but will try when i get chance. it's strange, since i know all windows client pcs (i'm the only pc using linux) have full read/write access to this folder... so it is strange, especially the fact i can write to it, save a file, open it, but then not edit and save it again without a chmod command. also i was surprised a chmod -R 777 command didn't work either...

as i say, i can fully read/write to the drive under normal conditions, i can save a new file there etc, just not alter an already saved file :huh:

will get back to you, any more suggestions welcome.

thanks again,

Ross.
  #4 (permalink)  
Old 21-Apr-2008, 08:56
Eds
Guest
 
Posts: n/a
Default

As you probably know, windows applies file-locking methods to files which are flagged as already "in use".
I suspect the file, once created and saved isn't being released by the windows server.
You can browse (if you can get access to the server or get someone to have a look for you) which files are "in use" in the windows administration tools.

Also, if the mount-point is in parenthesis of a directtory which has conflicting permissions, then its possible for those permissions to apparently* be inherited by the file - so if /mnt/server is 777, but /mnt is 755, then /mnt/server may behave as 755 also.

I usually create a clean folder of /shares root:users 777 to create mountpoints in, so for your example I'd be looking at /shares/server with root:users 777 and root:users 775 respectively for those folders.

This bit is irrelevant in this instance, but for the sake of completeness, if this behaviour is seen on a linux samba server then check the create_mask line in smb.conf is 77x and not 75x or less.

(apparently, since windows doesn't support unix file flags)
  #5 (permalink)  
Old 21-Apr-2008, 09:00
broch
Guest
 
Posts: n/a
Default

windows has nothing to do with the issue. It is only applications

1) can't change permissions on windows box from samba (samba is nowhere close to windows ACL anyway)
2) openoffice has/had issues with files from networked disks
--- check /usr/bin/soffice file for
# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING

backup original soffice file, comment out above lines. Hopefully consequences are clear?
  #6 (permalink)  
Old 21-Apr-2008, 09:37
thestig
Guest
 
Posts: n/a
Default

Quote:
windows has nothing to do with the issue. It is only applications

1) can't change permissions on windows box from samba (samba is nowhere close to windows ACL anyway)
2) openoffice has/had issues with files from networked disks
--- check /usr/bin/soffice file for
# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING

backup original soffice file, comment out above lines. Hopefully consequences are clear?
[/b]
ok broch, thanks, i shall give this a try tomorrow

thanks also to eds, i shall try your suggestion as well. will just chmod to /mnt/work server
Ross.
  #7 (permalink)  
Old 22-Apr-2008, 02:34
thestig
Guest
 
Posts: n/a
Default

Hi both Eds and broch,

just reporting back that after doing a chmod 777 "/mnt/work server" seems to have done the trick

thank you both for your help. guess i should have checked my mount point permissions too.

cheers again guys.
any more problems i'll be posting back

Ross.
  #8 (permalink)  
Old 24-Apr-2008, 09:14
thestig
Guest
 
Posts: n/a
Default

me again,

another problem.

i tried copying a few files to a folder on the server, it worked for one, then i got an error 'unable to change permissions...'

these were video files, so it can't be open office this time. i have also done chmod 777 to the mount point of the server in my home directory. what could it be? surely the server not letting the files go? it thinks the file is still in use, when it's not? that is my guess.

any ideas?

Thanks.
  #9 (permalink)  
Old 24-Apr-2008, 14:43
swerdna
Guest
 
Posts: n/a
Default

What code do you use to mount the windows share?

Swerdna
  #10 (permalink)  
Old 24-Apr-2008, 15:21
thestig
Guest
 
Posts: n/a
Default

Quote:
What code do you use to mount the windows share?

Swerdna
[/b]
the temporary command:

username@suseclient:~> # mount -t cifs -o username=netuser,password=hiddenword //192.168.44.100/origin /home/username/destination

hmmm
 
Page 1 of 2 1 2

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2