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 driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard mouse network printer problem ram registry router server slow software sound svchost.exe trojan 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 >
How to remove permissions

Reply  
Thread Tools
candysandra87's Avatar
Member with 37 posts.
 
Join Date: Dec 2008
15-Dec-2008, 03: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 48,385 posts.
 
Join Date: Mar 2005
Location: Ottawa, IL
Experience: Intermediate to Advanced
15-Dec-2008, 05: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
Member with 37 posts.
 
Join Date: Dec 2008
15-Dec-2008, 05: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 48,385 posts.
 
Join Date: Mar 2005
Location: Ottawa, IL
Experience: Intermediate to Advanced
15-Dec-2008, 05:54 PM #4
You need to specify the file(s). Check out this chmod tutorial.
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 05:48 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.