Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
My problem is that I have a shared (upload) folder, which others are able to connect to through Samba, my problem is that I need to execute "chmod -R 777 /path/to/dir/" to make it possible for others to upload...
I'm searching a way to chmod all files stored in /path/to/dir/ .. Because thing like they are right now, im forced to use "chmod -R 777" to change the permissions on the files which has been written to the share folder, since last time I used it...
I thought about making a cronjob, but I guess there's a more handy way.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134
Rep:
You can change the umask setting on the user accounts that are uploading the files so that it will upload them as 777 if that's the permissions that you want.
777 = Global Read, Write, Execute
Are you sure those are the permissions that you want to have? It shouldn't need to be that open just for upload(write) capability, but that's up to you.
I'm guessing that the files are uploading as 644, so you will need to set the umasks to "133" to get to 777 permissions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.