LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2017, 05:54 AM   #1
turiyain
Member
 
Registered: Dec 2006
Location: Delhi, India
Distribution: Centos 5.8, 6.5 Linux Mint 13 & 16, OpenSuse 12
Posts: 112

Rep: Reputation: 16
Default permission on download folder


Hi All,

I have a folder /abc/cap/download/. Where some important documents are downloaded for necessary processing. I want to give the permission to all the files downloaded in the above mentioned folder as 666 automatically.

Can you help that how can be it done.

Thanks.
 
Old 02-02-2017, 06:31 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,146
Blog Entries: 20

Rep: Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736Reputation: 4736
I don't think there is a way of letting a directory set permissions for its contents, but you can set a user mask for the download process. For example, if you are using a script to download these files, you could include "umask 000" in the script. Then all the files created by the script would have 666.
 
Old 02-02-2017, 06:40 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,688
Blog Entries: 4

Rep: Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942Reputation: 3942
Those are almost certainly the wrong permissions, o=rw is almost never correct. What problem are you trying to solve?

If you want different groups to be able to read or write, then apply group permissions to the directory either through the regular permissions or via ACL.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default permission for /home folder? Altiris Slackware 6 11-20-2015 07:29 PM
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 05:41 AM
nfs server - sharing folder - folder permission dlugasx Linux - Server 1 02-15-2011 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:16 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