Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old November 1st, 2009   #1
nexist
Just Give Me the Beans!
 
Join Date: Feb 2006
Location: Eugene, OR
Beans: 55
Send a message via Yahoo to nexist
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?
nexist is offline   Reply With Quote
Old November 3rd, 2009   #2
cotillion2009
First Cup of Ubuntu
 
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?
cotillion2009 is offline   Reply With Quote
Old November 9th, 2009   #3
The_CableGuy
First Cup of Ubuntu
 
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?
The_CableGuy is offline   Reply With Quote
Old November 10th, 2009   #4
dmizer
自己犠牲の精神
 
dmizer's Avatar
 
Join Date: Mar 2006
Location: Kitakyushu Japan
Beans: 7,891
Xubuntu 8.04 Hardy Heron
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"
dmizer is offline   Reply With Quote
Old November 11th, 2009   #5
nexist
Just Give Me the Beans!
 
Join Date: Feb 2006
Location: Eugene, OR
Beans: 55
Send a message via Yahoo to nexist
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).
nexist is offline   Reply With Quote
Old November 11th, 2009   #6
dmizer
自己犠牲の精神
 
dmizer's Avatar
 
Join Date: Mar 2006
Location: Kitakyushu Japan
Beans: 7,891
Xubuntu 8.04 Hardy Heron
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
Quote:
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
dmizer is offline   Reply With Quote
Old November 13th, 2009   #7
nexist
Just Give Me the Beans!
 
Join Date: Feb 2006
Location: Eugene, OR
Beans: 55
Send a message via Yahoo to nexist
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.
nexist is offline   Reply With Quote
Old November 13th, 2009   #8
cakper
First Cup of Ubuntu
 
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
cakper is offline   Reply With Quote
Old November 13th, 2009   #9
dmizer
自己犠牲の精神
 
dmizer's Avatar
 
Join Date: Mar 2006
Location: Kitakyushu Japan
Beans: 7,891
Xubuntu 8.04 Hardy Heron
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
dmizer is offline   Reply With Quote
Old November 13th, 2009   #10
nexist
Just Give Me the Beans!
 
Join Date: Feb 2006
Location: Eugene, OR
Beans: 55
Send a message via Yahoo to nexist
Re: Can't Write to CIFS share after upgrade to 9.10

That has fixed it. Thank you very much.
nexist is offline   Reply With Quote

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

Forum Jump


All times are GMT -4. The time now is 06:27 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry