Permission problem with CIFS on Linux

Status
Not open for further replies.

Narann

Dabbler
Joined
Jun 3, 2012
Messages
11
Hi all!

I have a FreeNAS version: FreeNAS-8.0.4-RELEASE-p2-x64 (11367)
OS version: FreeBSD 8.2-RELEASE-p7

I share files thought the network using CIFS wich work very well on all my Windows machines.

I know NFS exists but I would like to avoid it and have only one service to configure.

There is my problem:

I've used the "nobody nogroup" system to deal with permissions.

So the storage owner is "nobody" and the owner group is "nobody".

In the CIFS options I used "allow only guest access" and set the guest account to "nobody"

I mount it adding:

Code:
//192.168.0.3/PICRO_RAID0   /media/Picro            cifs    _netdev,guest 0       0


It work, I can go on my storage.

Now I have two problem:

1) The first is that permission are: rwxrwx---

Actually this is not the problem, it is what I want. "User" have all permissions, "Group" have all permissions and "Others" have no permissions at all.

But as I've mapped the guest account to "nobody" (in the CIFS options). "I should be nobody" and see everything right? And it seems I'm considered as a "Other" user. Where am I wrong?


2) The second problem is about files I copy on it:

Files owner change to become "nobody:nogroup" (this is good) but the permissions keep the same as the first user (for example: -rw-r--r--). I want them to become "-rwxrwx---" when they are copied.

How can I do that?

Thank in advance all and have a good day! :)
 
Status
Not open for further replies.
Top