* Fwd: [Question] NFS and default file / folder permission
[not found] ` <CAGXUOG+Px7tBTYH_9e93dOdxUweoE64aLLmRFa4BmyejC9Riug@mail.gmail.com>
@ 2012-11-19 17:06 ` Milovan Krivokapić
2012-11-19 17:22 ` Bryan Schumaker
0 siblings, 1 reply; 2+ messages in thread
From: Milovan Krivokapić @ 2012-11-19 17:06 UTC (permalink / raw)
To: linux-nfs
Hi, a quick question:
I have a problem regarding file permissions on NFS. Umask works for
new files well, but if I get a file via Skype with permission like 600
and then I put that file on NFS, it keeps permission 600 thus others
from a group cant use it at all (I am sharing files via common group).
So the question is how to enforce some default file / folder
permission on NFS? So in this example, I put file on NFS as client
with 600 and it turns into 660 or similar (kind like a mask).
Is it even possible or you have any suggestions?
Debian 6 is a NFS server, clients are Kubuntu 12.04.1 stations that
mounted NFS exported folder.
Thank you very much in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fwd: [Question] NFS and default file / folder permission
2012-11-19 17:06 ` Fwd: [Question] NFS and default file / folder permission Milovan Krivokapić
@ 2012-11-19 17:22 ` Bryan Schumaker
0 siblings, 0 replies; 2+ messages in thread
From: Bryan Schumaker @ 2012-11-19 17:22 UTC (permalink / raw)
To: Milovan Krivokapić; +Cc: linux-nfs
On 11/19/2012 12:06 PM, Milovan Krivokapić wrote:
> Hi, a quick question:
> I have a problem regarding file permissions on NFS. Umask works for
> new files well, but if I get a file via Skype with permission like 600
> and then I put that file on NFS, it keeps permission 600 thus others
> from a group cant use it at all (I am sharing files via common group).
>
> So the question is how to enforce some default file / folder
> permission on NFS? So in this example, I put file on NFS as client
> with 600 and it turns into 660 or similar (kind like a mask).
I don't think you can... but the current behavior seems like the right thing to do, since changing permissions on files could create security problems.
The best workaround I can come up with is creating a cron job to change permissions on everything in the directory (or if you're creative enough, just the new files). Good luck!
- Bryan
>
> Is it even possible or you have any suggestions?
> Debian 6 is a NFS server, clients are Kubuntu 12.04.1 stations that
> mounted NFS exported folder.
>
> Thank you very much in advance.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-19 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAGXUOGKWDB11zoqZ9zofBgJhJ3Jw0mhZh9QUF8up-1LGCVQ2zw@mail.gmail.com>
[not found] ` <CAGXUOG+Px7tBTYH_9e93dOdxUweoE64aLLmRFa4BmyejC9Riug@mail.gmail.com>
2012-11-19 17:06 ` Fwd: [Question] NFS and default file / folder permission Milovan Krivokapić
2012-11-19 17:22 ` Bryan Schumaker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).