You are not logged in.

#1 2010-01-28 20:44:34

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

[Solved] CIFS mount keeps being read only and does not budge a bit

I'm manually mounting a Windows 7 share with mount.cifs using this command:

mount.cifs //192.168.1.33/myshare /home/myuser/smbshare -o user=****,password=****,iocharset=utf8,rw,gid=100,uid=1000

It mounts perfectly fine and the dir is owned by my user. The problem is that I get permission denied when trying to create directories or files even with root powers.

I've tried setting file_mode= and dir_mode= to 0664 and even 0777 but my mkdir atttempts keeps getting denied? Again root has no power.

I've googled for a hour at least without any viable results besides a slight rumble of frustation nested deep within, so any ideas are very welcome.

Last edited by Ashren (2010-02-01 14:32:02)

Offline

#2 2010-01-29 07:55:31

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [Solved] CIFS mount keeps being read only and does not budge a bit

Ok, I might have to look at permissions on the windows side I guess.

Offline

#3 2010-02-01 14:31:35

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [Solved] CIFS mount keeps being read only and does not budge a bit

Doh. Turned out I needed to set write permissions for my user in Win 7.

Offline

#4 2010-02-16 09:42:48

tomislavski
Member
Registered: 2010-02-09
Posts: 87

Re: [Solved] CIFS mount keeps being read only and does not budge a bit

Ashren wrote:

Doh. Turned out I needed to set write permissions for my user in Win 7.

Hi, I'm having the same problems with my Sitecom Network storage router.

It's runing Samba and I want to be able to mount the shares in my home directory. I'm executing

mount -t cifs \\\\router\\share mountPoint -o user=U,password=P,uid=UID,gid=GID

where:

mountPoint=local directory in ~/ like, ~/Shared/mountPoint
U=name of the user I've added to the NAS on the router via the http:// interface
P= password of the share user on the router
UID=user id of the local user on the computer
GID=group id of the local user on the computer

Everything goes without an error reported, but then i use

ls -l

on the directory and see that it's size is 0.

When I try to write either as root or as a normal user, i get the error 13: Permission denied. You have solved this by adding write permissions on Windows, but I've set everything I could to be read/write on the router http:// interface... any suggestions?

Thanks

and yeah, could you please remove [SOLVED], or should I start a new thread? Thanks....

Last edited by tomislavski (2010-02-16 09:43:51)

Offline

#5 2010-02-16 10:29:05

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [Solved] CIFS mount keeps being read only and does not budge a bit

I think you need to create a new thread since this problem relates to NAS and not WIn 7 directly.

Last edited by Ashren (2010-02-16 10:31:11)

Offline

#6 2010-02-16 10:42:39

tomislavski
Member
Registered: 2010-02-09
Posts: 87

Re: [Solved] CIFS mount keeps being read only and does not budge a bit

Ashren wrote:

I think you need to create a new thread since this problem relates to NAS and not WIn 7 directly.

Cool, thanks for the swift answer! smile

Offline

Board footer

Powered by FluxBB