Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
permissions again

Reply  
Thread Tools
angst's Avatar
Junior Member with 2 posts.
 
Join Date: Jun 2002
18-Jun-2002, 03: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, 02: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, 02: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.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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 want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
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 08:07 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.