Recursively fixing file permissions

Submitted by fago on Sun, 03/01/2015 - 16:22

When you want to recursively fix file permissions, directories usually should get a umask of 755 while files should default to 644 unless they are scripts.

Fortunately, chmod has the +X modifier for that: +X only adds the execution bit to directories, while it does not add it to files. It keeps pre-existing execution bits for files though. Thus, to fix all directories to have 755 and files to have 644 or 755 depending on the existing exexcution bit, just run:

chmod -R =rwX .

If you want to reset all files to 644 also, run

chmod -R -x,=rwX .

Tags

Comments

patricecooper

Fri, 12/23/2016 - 05:01

As a part of academic work students need to complete their internal work like assignments, seminars, projects etc .And the main thing to according to graduation students is research paper means writing essays and others sorts of assignments like dissertations, thesis papers, research papers, term papers etc can be a challenging task for the students of all academic level. So students must depend on the genuine resources available in the internet. Almost all skip the task to write a research paper. Research paper can provide good knowledge and also good language skill. So by writing a research paper one can get excellent knowledge. Almost all skip the task to write a research paper. Research paper can provide good knowledge and also good language skill. Almost all essay writing service available is issues better quality essay paper for our academic work. A research paper can be used for exploring and identifying scientific, technical and social issues. If it's your first time writing a research paper, it may seem daunting, but with good organization and focus of mind, you can make the process easier on yourself. Most of the students are focusing on the quality and plagiarism free information for their academic work. For reaching good quality knowledge one should have excellent language skill. So one should have to develop the language skill along with vocabulary. There are so many online resources available now. They includes Cheap essay writing service, freelance service etc.
Ref :http://essayguardian.com

austusnobet

Wed, 03/01/2017 - 18:04

A drupal7 advanced module developer is required to develop a peer to peer donation module which will help users to provide financial help to another user and also be entitled to receive help from another with 200% more of his initial provide help amount. Using a 3:1 matrix
Let’s use an illustration, refer to attached image also;
User 1 provided help of $30 to other participant successfully; he is now entitled to receive help of $90 from other participant(s).
User 2 provided help of $50 to other participant successfully; she is now entitled to receive help of $150 from other participant(s).
User 3 provided help of $90 to other participant(s) successfully; he is now entitled to receive help of $270 from other participant(s).
On the other hand
User 4 has just placed an order to provide help of say $510 which will entitle him to receive $1,530 after successful payment and confirmation. Admin will now match user 4 to pay User 1 = $90, User 2 = $150 & User 3 =$270. Now User 4 will now see user1, user2, user3 account detail and the amount he is supposed to pay each and every one of them, this feature can be built in a drupal7 block widget or page and on this block widget he will click to upload proof of payment for various users to be confirmed by each of the various users from their end or the admin will verify and confirm.
Permission: That is, user can confirm own received help or the admin will verify and confirm if the user did not.

Important features On the admin backend
Administer all orders to ‘provide help’ by matching the provide help user with ‘get help’ user(s).
A way to match the ‘provide help’ user to pay the ‘get help’ user(s)
A way to view user submitted bank details and bitcoin address for compliance
Administer all module settings.
Admin will be able to split or determine how much provide help user pays to get help user.
User Account details which is collected through the module, once submitted, can only be edited by the admin.
User will automatically be awarded x3 of their provided help after payment confirmation.
A way to view all provides help and get help transactions done by each user. Etc

Important features on the frontend
Block widget or page which display all provide help and get help done by logged in user to the logged in user.
Block widget which displays logged in user submitted Bank Account Detail and bitcoin address to the logged in user.
Block widget which display those match with the logged in user to provide help to or get help from as the case may be, if it’s to provide help there should be provision to upload proof of payment for confirmation by the other user paid to and/or the admin as well.
‘Provide help’ form page where they can choose between to provide help in bitcoin dollar amount or in local currency and fill in the amount.
Block widget which has big square ‘Provide Help’ on the left side and ‘Get Help’ button on the right hand side. ‘Provide Help’ button take user to the provide help page to place an orders while ‘Get Help’ triggered withdrawal of all user accumulated earnings pending to be matched by the admin.

Suggested module integration
The procedure stated above is for the module developer to have full understanding of feature the web designer requires, the module developer can use own best practices to achieved the desired result.
These are the suggested module for developer to take advantage of by hooking into the modules as the case may be.

RULES
Hooks can be implemented with a sub module for peer to peer donation rules on the rule module to perform some specific tasks like
Sending mails notifications to the matched provide help and get help users.
Setting condition to automatically match provides help and get help user who requested for the same amount, which then triggers the send mail rule.
And so on

TOKENS
Create tokens for use with rules for information like
Bank Account details
Bitcoin Address
And so on

VIEWS
Can create hooks for views module using a sub module to display all transactions that is taking place on the website, who receives payment from who and who pays to who.
And so on

PROFILE 2
Can create a block widget from sub module which will pull and display logged in user’s array of profile information and payment details submitted to this module.

USER REFERRAL
Can hook into this module to create a sub module for peer to peer donation module. So that user can be award 10% of the first initial provide help of their referrals, which when flagged by the admin will award the 10% to their peer to peer donation module credit for withdrawal through ‘Get Help’ function.

FLAG MODULE
Might be useful at some point, if so a sub module will be developed

Finally, please refer to attachment for a little visual representation of the above concept.