User permission not properly set on file

Status
Not open for further replies.

Mr_I_rules

Cadet
Joined
May 10, 2013
Messages
3
All,

I have the following setup:
Hardware
processor i7-3770s
RAM 32gig DDR3
256 SSD
2 x 2TB seagate HDD
Gigabyte Z77 motherboard
software
Windows 7 with virtualbox installed
I am running "FreeNAS-8.3.1-RELEASE-x64 (r13452)" under virtualbox
Two harddisks are mounted on my freenas and setup in two different ways
One part as a ZFS mirorred (raid1) volume.
Second part as a ZFS stripe (raid0) volume.
I have three users. A data user which has a home directory, called Data, on the RAID1 volume and a temp user which has a home directory, called Temp, on the RAID0 volume.
A scanner user who has a home directory, called Scanner, in a folder of the temp user.
The Volumes Data and Temp are configured as CIF shares.
These two volumes are mapped on my PC (I have a windows 7 and a Linux Mint) with the users data and temp.
The scanner user is used for my scanner which connects by a FTP session.
Until here everything is working properly.
Problem I have now is whenever I put a file in the Scanner folder with the scanner user, I cannot read or execute this file with the temp user.
The home directory mode of the user Scanner has every checkbox validated.
When I check on the freenas the permissions of the files, I see that the files are owned by the scanner user and only this user has the read write permissions set.
When I check "set permissions recursively" on my volume and apply this (change) the permissions are set properly. And the files are readable for every user.

One should suspect that the permission of my files put on the server by the scanner user are readable and executable for every user ?
Can anyone tell me why this is not working ?
Or is it just the setup that's not working ?

Thanks in advance
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Do a search on the internet for "FreeBSD umask". You need to set umask to 000.
 

Mr_I_rules

Cadet
Joined
May 10, 2013
Messages
3
Do a search on the internet for "FreeBSD umask". You need to set umask to 000.

Thx for your answer.
I have searched on it. It's not very clear for me.
I can change the rights of a file.
But this should be done automatically.
So if the user printer connects by FTP and puts a file in its home directory everybody should have the possiblity to rwx it.
But this configuration I can't find.
I would think it should be OK by just configuring the printer user.
 

Mr_I_rules

Cadet
Joined
May 10, 2013
Messages
3
I think I found the problem.
In my FTP settings the checkbox CHROOT was validated.
By disabling this you can change the rights on the files which are left on the FTP server.
 
Status
Not open for further replies.
Top