How can i make user always create files + folders with 775 permission ? Please help
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can i make user always create files + folders with 775 permission ? Please help
Hello,
I am trying to achieve the following on Debian, i need to have testuser create all his files + folders with 775 permission, everything this user creates i would like for it to have that permission.
I would be VERY appreciative if someone could tell me how to do this.
---
What will also work would be some way i could set a folder to always have that permission no matter what is written in it and by who.
I am trying to achieve the following on Debian, i need to have testuser create all his files + folders with 775 permission, everything this user creates i would like for it to have that permission.
I would be VERY appreciative if someone could tell me how to do this.
---
What will also work would be some way i could set a folder to always have that permission no matter what is written in it and by who.
you might have thought of this or tried it already, but have you tried using groups with them permissions/limits attached to it, then who ever is assigned to that group can, and them not attached to that group cannot?
you might have thought of this or tried it already, but have you tried using groups with them permissions/limits attached to it, then who ever is assigned to that group can, and them not attached to that group cannot?
I have added them like this in etc/group
user1:x:1000:user2
user2:x:1001:user1
Should i change something ? hmm.
Maybe they are not added correctly ?
Last edited by ParanoiaUser; 12-06-2016 at 11:49 AM.
can execute just not write to is the only thing that the OP seems to be worried about.
Quote:
0775
user group other
setuid is unset can read can read can read
setgid is unset can write can write cannot write
Sticky bit is unset can executecan executecan execute
and that only pertains to other that the write permissions have been removed from.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.