Samba files open as locked

Bug #297367 reported by pga
4
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
New
Undecided
Unassigned

Bug Description

After new system installation (Kubuntu 8.10) I can not overwrite files on network drive mounted by using fstab:
//192.168.0.10/srv/ /mnt/server/ smbfs auto,rw,credentials=/etc/samba/passwords,uid=1000,gid=1000,noperm 0 0

I can create new files but I can not overwrite anything (files are open as locked probably).

Samba settings on Debian server before and after Kubuntu desktop workstation installation was unchanged.
Also way of mounting samba file system is exactly the same on 8.04 and 8.10.

=== HOW TO REPRODUCE THE ISSUE =========================================

1. Install the minimal default configuration of the following distros (eg. by using VirtualBox):
  a. Debian server (http://cdimage.debian.org/debian-cd/4.0_r5/i386/iso-cd/debian-40r5-i386-netinst.iso - install fileserver only)
  b. Kubuntu 8.04.1 (http://releases.ubuntu.com/kubuntu/hardy/kubuntu-8.04.1-desktop-i386.iso)
  c. Kubuntu 8.10 (http://releases.ubuntu.com/kubuntu/intrepid/kubuntu-8.10-desktop-i386.iso)

2. Make full upgrade for all installations (my test was made 2008-11-21):
> sudo aptitude update
> sudo aptitude dist-upgrade

3. Install necessary Samba packages for all installations:
> sudo aptitude install samba smbfs

4. Add at the end of /etc/samba/smb.conf default file on Debian server installation:
[samba]
path=/srv/samba
browseable=yes
writeable=yes
valid users = username
admin users = username

More info e.g. here: http://www.debianhelp.co.uk/samba.htm

5. Create /srv/samba/ directory and add `username` user on Debian server installation:
> sudo mkdir /srv/samba/
> sudo chown 777 /srv/samba/
> sudo smbpasswd -a username
> sudo smbpasswd -e username

6. Create /mnt/samba/ folder on both Kubuntu installations:
> sudo mkdir /mnt/samba/
> sudo chown 777 /mnt/samba/

7. Add to the end of /etc/fstab file on both Kubuntu installations:
//192.168.0.10/samba /mnt/samba smbfs rw,username=username,password=password,noperm 0 0

and change debian server IP, username and password to real correct values

8. Reboot all three systems

9. Make tests in mounted /mnt/samba folders for both Kubuntu installations:
- create new text files (pass on both 8.04 and 8.10)
- overwrite previously created text file by using eg. nano text editor (pass on 8.04, failed on 8.10)

===============================================================

It can be kernel, not smbfs package issue. The similar problem is described here:
http://user.services.openoffice.org/en/forum/viewtopic.php?f=9&t=11869
but the showed solution doesn't work.

This issue is very annoying - especially for people (like me) who use Kubuntu Linux
and mounted smbfs filesystem in work.

Tags: samba smbfs
Revision history for this message
Connor Imes (ckimes) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in "samba".
For future reference you might be interested to know that a lot of applications have bug reporting functionality built in to them. This can be accessed via the Report a Problem option in the Help menu for the application with which you are having an issue. You can learn more about this feature at https://wiki.ubuntu.com/ReportingBugs.

pga (pga)
description: updated
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks a lot like bug 286828, especially as etch seems to be using 3.0.24-6etch10.
Could you confirm that the fix there (when available) also fixes this one ?

Revision history for this message
pga (pga) wrote :

It looks exactly the same issue. I use smbfs instead cifs but I've tested it on both.

I also noticed that this problem is only during access to Debian server.
I've got network drive (Icy Box NAS 2000) and I can rewrite files mounted on the same
way.
Maybe it depends on remote filesystem because on Icy Box I have FAT32,
on Debian I've got default ext3.

Revision history for this message
pga (pga) wrote :

msdfs root = no in globals section on Debian server has fixed the issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.