Mourning the loss of our friend, WhitPhil.
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 audio black screen blue screen boot bsod connection crash desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem recovery registry cleaner router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
How to remove permissions

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
candysandra87's Avatar
Junior Member with 18 posts.
 
Join Date: Dec 2008
15-Dec-2008, 02:51 PM #1
How to remove permissions
Hello guys!

I just uploading my coursework for into my school unix server into its own directory. There are only two files. (project1 and project1.c)

I have to remove *all permissions* for others, and make it so only I can read/execute/write.

Is there any easy way to do this? Is there a single command that will allow me to take off read/execute/write permissions for these 2 files for everyone but myself?

I was googling and found this: chmod o-7 *

but don't know if its right.

Any unix gurus please help!
TerryNet's Avatar
Computer Specs
Moderator with 27,156 posts.
 
Join Date: Mar 2005
Location: Ottawa, IL
Experience: Intermediate to Advanced
15-Dec-2008, 04:26 PM #2
chmod 700 will set read/write/execute permission for you (the owner) and no permissions for group and others.

I think that chmod o-7 will remove all permissions from others, and leave the owner and group permissions as is.
candysandra87's Avatar
Junior Member with 18 posts.
 
Join Date: Dec 2008
15-Dec-2008, 04:31 PM #3
thanks!

excuse my ignorance, but i just type it in like that? or are there extra parameters to deal with the individual files? (or will this just make it so whatever directory i type it in will effect all the files in that directory?)

in any even thanks!
TerryNet's Avatar
Computer Specs
Moderator with 27,156 posts.
 
Join Date: Mar 2005
Location: Ottawa, IL
Experience: Intermediate to Advanced
15-Dec-2008, 04:54 PM #4
You need to specify the file(s). Check out this chmod tutorial.
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 10:19 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.