User parameters don't work mounting CIFS share

I need to mount a windows share on my OpenSUSE 11.3. I get it using the mount.cifs command (by itself or using cifstab), but only root can rw file. I try the uid/gid parameters (also using forceuid) and the file_mode/dir_mode parameters, but I get the same behavior: all files and directory with rwxr-xr-x permissions and root/root (user/group).

I read the whole section FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS in man mount.cifs but nothing works.

Any idea?

have you tried add the uid=1000
//ip/share /local/folder/mount cifs username=user,password=pass,uid=1000,_netdev
good luck

On Thu November 18 2010 11:06 am, rfabbrica wrote:

>
> I need to mount a windows share on my OpenSUSE 11.3. I get it using the
> mount.cifs command (by itself or using cifstab), but only root can rw
> file. I try the uid/gid parameters (also using forceuid) and the
> file_mode/dir_mode parameters, but I get the same behavior: all files
> and directory with rwxr-xr-x permissions and root/root (user/group).
>
> I read the whole section FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS
> in man mount.cifs but nothing works.
>
> Any idea?
>
>
rfabbrica;

This Howto may be of value to you:

http://opensuse.swerdna.org/susesambacifs.html

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

No change, same behavior.

I already used it … no solution …

I think you are doing this from the command line. Please post here the command that you use.

If I am mistaken and you are doing this with a command in fstab, please post here the line that you are using in fstab.

The command lines I use are:

mount.cifs //fileshare/repository$ /windows/Repository -o user=fabbrica domain=dom uid=fabbrica gid=users
(using numeric uid and gid don’t change)

or

mount.cifs //fileshare/repository$ /windows/Repository -o user=fabbrica domain=dom file_mode=0666 dir_mode=0777

Try connecting those options with commas (not sure, I never used spaces as connectors, seems illogical).

On Sun November 28 2010 04:06 pm, swerdna wrote:

>
> Try connecting those options with commas (not sure, I never used spaces
> as connectors, seems illogical).
>
>
Then manual clearly states a comma separated list. From man mount:

-o Options are specified with a -o flag followed by a comma separated
string of options.


P. V.
“We’re all in this together, I’m pulling for you.” Red Green

voilà …

Ok, now everything is working!

Using spaces was a bad idea … thank you very much!