There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware network networking outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
permissions again


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
angst's Avatar
Junior Member with 2 posts.
 
Join Date: Jun 2002
18-Jun-2002, 02:27 PM #1
permissions again
does any one know the code that I need to get my files set to this permission: drwxr-xr-x ?

thanks in advance for your time!
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
20-Jun-2002, 01:24 AM #2
Try chmod 755 * to change all files (and directories) to rwx-r-x-r-x. The chmod man page has details.

Hope this helps.
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
20-Jun-2002, 01:53 AM #3
An addendum to my earlier post:

The command chmod 755 * will change the permissions of all files and directories in the current directory to rwx-r-x-r-x. However, you may have had something else in mind, such as changing all files and directories in an entire tree to a specified permission. You'll need a command such as the following to do this:

find . -exec chmod 755 {} \;

which will change all files and directories in and below the current directory to permission rwx-r-x-r-x. You can restrict the changes to directories by adding the -type parameter to the find command:

find . -type d -exec chmod 755 {} \;

You can use:

find . -type f -exec chmod 755 {} \;

to apply the changes only to files. Note that you must own the file or directory or be the superuser in order to change its mode.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:39 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.