Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Can't Write to CIFS share after upgrade to 9.10

  1. #1
    Join Date
    Feb 2006
    Location
    Eugene, OR
    Beans
    61

    Can't Write to CIFS share after upgrade to 9.10

    My home network has a file server running Ubuntu server. I have my desktop attached to it via a SAMBA/CIFS share which just mounts my home directory on that system (obelisk) as a directory for my desktop. I could read/write to the dir with no problems. Both were running 9.04. I the desktop to 9.10 today and I find that I can no longer write to my home directory through the share. My work laptop, running Windows Vista, can connect and write to the share.

    The relevant line in my fstab is:

    Code:
    # Samba share on obelisk
    //10.11.93.2/nexist /home/nexist/obelisk cifs username=nexist,password=****,nounix,iocharset=utf8   0 0
    Can anyone tell me what changed with the Samba/CIFS that would cause this behavior?

  2. #2
    Join Date
    Mar 2009
    Beans
    2

    Re: Can't Write to CIFS share after upgrade to 9.10

    Having the same problem. cifs-shares mounted via fstab or mount.cifs are always read-only.
    When mounting through gnome.vfat read-write-access is possible.

    Any suggestions?

  3. #3
    Join Date
    Feb 2009
    Beans
    1

    Re: Can't Write to CIFS share after upgrade to 9.10

    I have the same problem with cifs share. Only read, no write.
    The mount worked fine in 9.04.
    Is this a bug?

  4. #4
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Can't Write to CIFS share after upgrade to 9.10

    I've posted a fix for this in my howto (2nd link in my sig). It's listed under: KARMIC: Files owned by root / "The folder contents could not be displayed"

  5. #5
    Join Date
    Feb 2006
    Location
    Eugene, OR
    Beans
    61

    Re: Can't Write to CIFS share after upgrade to 9.10

    Quote Originally Posted by dmizer View Post
    I've posted a fix for this in my howto (2nd link in my sig). It's listed under: KARMIC: Files owned by root / "The folder contents could not be displayed"
    This did not fix my problem. I still cannot access my Samba share (9.04) in rw mode from my Desktop (9.10).

  6. #6
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Can't Write to CIFS share after upgrade to 9.10

    Quote Originally Posted by nexist View Post
    This did not fix my problem. I still cannot access my Samba share (9.04) in rw mode from my Desktop (9.10).
    Okay, then try the fix labeled
    Files owned by root / "The folder contents could not be displayed"
    If that still does not work, please post your current /etc/fstab line, as well as the output of:
    Code:
    sudo iptables -L

  7. #7
    Join Date
    Feb 2006
    Location
    Eugene, OR
    Beans
    61

    Re: Can't Write to CIFS share after upgrade to 9.10

    Here is the fstab
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # /dev/sda3
    UUID=f736b56c-870a-45dd-8a2d-fc8cc8b220ed /               ext3    relatime,errors=remount-ro 0       1
    # /dev/sda2
    UUID=ba58f240-fec8-4f0d-be43-4efbbf169d88 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    #
    # Samba share on obelisk
    //10.11.93.2/nexist /home/nexist/obelisk cifs username=nexist,password=******,nounix,iocharset=utf8,noserverino   0 0
    #
    # For USB access with Virtualbox
    none	/proc/bus/usb	usbfs	devgid=126,devmode=664	0  0
    and the output of sudo iptables -L
    Code:
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    Thank you.

  8. #8
    Join Date
    Apr 2007
    Beans
    2

    Re: Can't Write to CIFS share after upgrade to 9.10

    Try with this options added at the end:
    Code:
    ,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

  9. #9
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Can't Write to CIFS share after upgrade to 9.10

    You'll need to add the uid and gid options like so:


    1) Find your uid and gid (normally both are 1000, but double check):
    Code:
    cat /etc/passwd | grep nexist
    The output will look something like this (my uid and gid are marked in red):
    Code:
    $ cat /etc/passwd | grep dmizer
    dmizer:x:1000:1000:dmizer,,,:/home/dmizer:/bin/bash
    2) Add gid, uid, and nounix options to your fstab line like so:
    Code:
     //10.11.93.2/nexist /home/nexist/obelisk       cifs    username=nexist,password=******,iocharset=utf8,gid=1000,uid=1000,nounix,noserverino,file_mode=0777,dir_mode=0777 0 0

  10. #10
    Join Date
    Feb 2006
    Location
    Eugene, OR
    Beans
    61

    Re: Can't Write to CIFS share after upgrade to 9.10

    That has fixed it. Thank you very much.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •