LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2014, 10:19 AM   #1
the98
Member
 
Registered: Sep 2010
Posts: 49

Rep: Reputation: 9
Applications don't respect umask


Hello all.

I'm having some minor trouble and I wanted to know if you guys know how to solve this.

Four years ago, I asked you about write permissions. Thanks to your help, I solved that problem. Here is the thread: http://www.linuxquestions.org/questi...-fstab-831446/

In short, I have a multiuser setup, and I had some ext4 shared partitions. I wanted for both users to be possible to read or write anything the other users creates, without having to constantly change permissions via Root. So we worked around a way to do that, by assigning that partition a common Group.

But there's some left over inconvenience. It turns out that if you're using some application, like aMule or Transmission, and you download a file, the file gets created with no writing permission for the group. I mean, the program respects the owner and group, but does not respect the umask settings in /etc/profile configuration.

My distro is Debian Sid. Any ideas on how to proceed?

Thank you in advance!
 
Old 04-14-2014, 01:16 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
ACLs probably. Check the ACL doc, search LQ for "setfacl" examples, mount your partition with ACL support, see if you can figure it out and if you can't post what you've tried.
 
Old 04-14-2014, 05:13 PM   #3
the98
Member
 
Registered: Sep 2010
Posts: 49

Original Poster
Rep: Reputation: 9
Thanks unSpawn!!

This problem is solved, apparently. This is the command I used.

Code:
# setfacl -R -m g:GROUPNAME:rwx,d:g:GROUPNAME:rwx,o:r,d:o:r DIRECTORY
It gives RWX permissions to the Group Partitions, and gives only READ permissions to Others.

What's odd about the command is the I need to repeat instruction adding the DEFAULT switch. (d:g:GROUP:PERMISSIONS). Why do you think that is? I don't know anything about ACL, so I have no idea.

Anyway, thanks for the help!

LQ rocks!

PS: if anyone has the same issue, remember that I had to do this before: http://www.linuxquestions.org/questi...-fstab-831446/

Last edited by the98; 04-15-2014 at 11:18 PM. Reason: mistype
 
1 members found this post helpful.
Old 04-15-2014, 04:07 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for confirming & posting back your solution, much appreciated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] umask ignored by GUI applications cyberpatrol Slackware 2 02-01-2013 06:00 PM
umask and permissions: has umask 007 bad side effects? browny_amiga Linux - General 2 09-09-2011 08:01 AM
My installed applications don't show up itags.org Ubuntu 1 08-01-2009 01:16 PM
[SOLVED] LaTeX: don't want to *force* page break, just make the text respect the footer titanium_geek Programming 3 07-30-2009 04:17 AM
X applications ignore UMASK settings thejasondean Ubuntu 0 01-10-2007 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration