?
Solved

chmod

Posted on 2000-03-14
2
Medium Priority
?
503 Views
Last Modified: 2010-04-21
i try chmod -R a+w *.* .* *
to allow all users to wirte to all dirs below the current one
but it says that it cant access *.*

i just want it to enable access to all users to be able to create
files and dirs in all dirs below this one

can anyone help?
0
Comment
Question by:boofulls
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 2616576
       
Be careful with this one -  chmod -R a+w .* expands to include ..
i.e. it goes up a level before recursing down =8-O
                     
I don't know about *.*
                     
For what you want to do, find . -exec chmod a+w {} \; would be safer, but even this will follow links in the subdirectories and change the permissions on what the link points to.
0
 
LVL 2

Accepted Solution

by:
GP1628 earned 150 total points
ID: 2616655
I would do

chmod -R a+w *
chmod -R a+w .???*

I find that * usually covers *.*

The .???* makes sure you wont have the problems caused by .* being equal to . and ..

If these are home directorys for users on the system then look at what settings you have for all the files in /etc/skel so that you dont have to keep doing this.

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question