Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We've been running Red-hat Enterprise Linux 4.0, for in house web development work for a year. The basic setup is a shared folder (www) over samba that we use to access our web files.

When our licence expired for Redhat, we decided to go to a free alternative (Ubuntu 9.04).

However we have experienced an annoying problem, with saving files over samba. After saving the text editor asks to reload the file, as if someone else had changed it just after our original save. We never had this problem with Red-hat.

My guess is that when saving the last modified date changes, and causes the text editor to think it's been modified.

Any ideas?

** UPDATE ** 15:09 There are a couple of diffs between the smb.conf's

I've removed

; logs split per machine log file = /var/log/samba/%m.log

; max 50KB per log file, then rotate max log size = 50

and encrypt passwords = yes has changed to encrypt passwords = true

Redhat:
Arch : x86_64
Version : 3.0.33
Release : 3.7.el5

Ubuntu: 2:3.3.2-1ubuntu3.1

I was running RHEL5.1

** UPDATE ** 15:17 14/08/2009

I thought LOhit had the answer.

Turning off oplocks did stop the problem, it stopped us receiving notices that the file had been modified by someone else.

share|improve this question
    
I've have uploaded my smb.conf to pastebin.com/f433ca66 –  Daniel P Aug 17 '09 at 10:32
add comment

4 Answers

Have look at the "oplocks" for that share....

share|improve this answer
    
did have oplocks = yes changed to oplocks = no –  Daniel P Aug 14 '09 at 14:10
add comment
up vote 1 down vote accepted

We did experience this problem with later versions of Ubuntu.

My guess there was a bug somewhere in Ubuntu 9.04 that caused our issues.

share|improve this answer
add comment
  • Did you implement your old smb.conf to the new server?
  • What verison of samba did you have installed on RH and now have on Ubuntu?
  • Has this always been a problem or only recently since the distro change?

  • side note: You might what to check out using SVN instead of SAMBA it does verison control and locking

share|improve this answer
    
Ideally I'd like people to use SVN to checkout files, however the users have gone for the simplicity of checking out to the samba share. This share (www), is used with vhost in apache to simplify initial testing setup. –  Daniel P Aug 13 '09 at 14:40
add comment

Off topic, and just for your reference, CentOS is Redhat Enterprise Linux compiled from source. RHEL is Open Source, it is just the support contracts that cost money.

CentOS

share|improve this answer
    
Might have to consider CentOS if it offers later packages than Redhat. –  Daniel P Aug 17 '09 at 8:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.