?
Solved

chmod

Posted on 2000-03-14
2
Medium Priority
?
496 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

800 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