problems with file-permissions using linux-cifs-client

Bug #263228 reported by Hans Otto Lunde
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: smbfs

I have a question regarding file-permissions using the linux-cifs-client

I'm using Ubuntu 8.04 and right now I'm using the fusesmb utility to access shares on samba servers. This works fine,
but it's a little aggressive regarding network traffic. Ubuntu's built in fuse-gvfs solution is not good enough, because
quite a few programs won't load/save files using this.
Therefore I thought that the right way, should be to use the cifs-client.
I think the responsible module in Ubuntu is "smbfs" cersion 3.0.28a-1ubuntu4.2.
Example: I want to access files on the following share on a samba-server (3.0.21) - security on the server is USER.

comment = Edb
path = /home/afdeling/edb
read only = no
force group = edb
create mask = 660
directory mask = 770
valid users = +edb

I put the following in /etc/fstab

//ESERVER/edb /mnt/edb cifs credentials=/root/.smbinfo,uid=1000,gid=1000,iocharset=utf8 0 0

The share mounts just fine using the username "ho" and password from the .smbinfo-textfile.
The problem is, that if I save a file on the share

-rw--w---- 1 ho edb 6 Jun 22 21:38 TEST.txt

It should have had -rw-rw--- User and group is correct.

If I create a directory

drwx------ 2 ho edb 4096 Jun 22 21:38 TEST

This should have been drwxrwx---. User and group is correct.
I've tried using different combinations of mounting parameters, such as ,file_mode=0660,dir_mode=0770, but it
doesn't seem to have any effect. The result is always the same.

Am I missing out on something simple here?? Or is cifs buggy. And shouldn't the files and directories on the server
be controlled by the server settings, that would be the most sensible, it seems to me.

Hans Otto Lunde
Egmont Højskolen
Denmark

Revision history for this message
bstempi (brian-stempin) wrote :

Hi Hans,

Does your SMB server use ACLs?

Mounting an SMB share that has ACLs enabled requires use of the "noperm" option when mounting, else it won't work correctly. I've seen things similar to what you're describing due the missing mount option I've described.

HTH,
Brian

Chuck Short (zulcss)
Changed in samba:
status: New → Incomplete
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in samba:
status: Incomplete → Invalid
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.