Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba CIFS file "changed on disk" [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eddymulyono
n00b
n00b


Joined: 02 Jan 2004
Posts: 45
Location: Hayward, CA

PostPosted: Tue Sep 05, 2006 8:03 am    Post subject: Samba CIFS file "changed on disk" [solved] Reply with quote

I'm having a problem updating file in my CIFS-mounted partition.

Steps to reproduce:

  1. Open a text editor (e.g. gedit or emacs)
  2. Enter some text ("test")
  3. Save ("test.txt")
  4. Enter some more text ("test again")
  5. Save


Expected:
"test.txt" updated

Problem:
gedit: "The file /home/eddy/test.txt has been modified since reading it. If you save it, all the external changes could be lost. Save it anyway? Save Anyway. Don't Save."
emacs: "test.txt changed on disk; really edit the buffer? (y, n, r or C-h)"

Workaround:
gedit: Click "Save Anyway".
emacs: Type 'y'.

This happens every time I update the file.

My samba server:
Code:

# emerge -pv samba
[ebuild   R   ] net-fs/samba-3.0.22-r3  USE="async cups pam python readline swat xml -acl -automount -doc -examples -kerberos -ldap -ldapsam -libclamav -mysql -oav -postgres -quotas -syslog -winbind" 0 kB

/etc/samba/smb.conf:
[global]
hosts deny = 0.0.0.0/0
hosts allow = 10.0.0.0/24, 127.0.0.1
[eddy]
path = /mnt/gudang/eddy
valid users = eddy
browseable = no
writeable = yes
map archive = no


My samba client:
Code:

# emerge -pv samba
[ebuild   R   ] net-fs/samba-3.0.23a  USE="cups pam python readline -acl -async -automount -doc -examples -kerberos -ldap -oav -quotas (-selinux) -swat -syslog -winbind" LINGUAS="-ja -pl" 0 kB

/etc/fstab:
//theoden/eddy          /home/eddy      cifs            defaults,cred=/etc/samba/eddy_cred.txt  0 0

$ mount:
//theoden/eddy on /home/eddy type cifs (rw,mand)


Any suggestions?


Last edited by eddymulyono on Sun Sep 10, 2006 7:25 am; edited 1 time in total
Back to top
View user's profile Send private message
eddymulyono
n00b
n00b


Joined: 02 Jan 2004
Posts: 45
Location: Hayward, CA

PostPosted: Sun Sep 10, 2006 7:25 am    Post subject: Reply with quote

Apparently, it's caused by a time-synchronization problem. I fixed it by running /etc/init.d/ntpd on both client and server.

Code:

eselect rc start ntp-client ntpd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum