Solved

chmod

Posted on 2000-03-14
2
471 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
2 Comments
 
LVL 20

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 50 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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.

809 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