Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > How I Remove Permissions?

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-21-2005   #1 (permalink)
Just Joined!
 
Join Date: Jun 2005
Location: North Carolina
Posts: 56
Send a message via AIM to Imscaredofgrass Send a message via MSN to Imscaredofgrass Send a message via Yahoo to Imscaredofgrass
How I Remove Permissions?

i was wondering how you can set the permissions to 777 for everything under / - including folders, files, and even mounted harddisk, without going through each individual folder?
Imscaredofgrass is offline  



Reply With Quote
Old 07-21-2005   #2 (permalink)
Linux Guru
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,408
Why would you want to do this??

I guess if you wanted you could use
Code:
chmod -R 777 /*
But it really doesn't sound like a good idea.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 07-21-2005   #3 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,696
I would suggest not doing that.
anomie is offline   Reply With Quote
Old 07-21-2005   #4 (permalink)
Linux Newbie
 
ihayhurst's Avatar
 
Join Date: Jun 2005
Location: UK
Posts: 138
Like smalloy said why?, even the last OS on your distro list isnt quite that wide open... Was it just a way to get someone to answer or a genuine desire to achieve a particular effect ?

the -R option in the code posted is Recursive, it drills down through the dir's below the given starting point...
A recurring sysadmin's nightmare is that oneday a clever string of quoting and xargs etc will make recursive function like that match the dir '..' and your rm will 'escape' and wipe out your system (and career) makes me sweat just to think about it



shudders

Cheers
Ian
__________________
Registerd Linux user #119296
ihayhurst is offline   Reply With Quote
Old 07-21-2005   #5 (permalink)
Linux User
 
Join Date: Nov 2003
Location: Brooklyn, NY
Posts: 347
Send a message via ICQ to Slip Send a message via AIM to Slip
The permissions are there for a reason, if you set everything to 777 every user on the box will be capable of destroying your whole system. This is a major security risk, I strongly suggest you do not do this.
Slip is offline   Reply With Quote
Old 07-21-2005   #6 (permalink)
Linux Guru
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,408
The experts can correct me if I'm wrong, but one of the benefits of linux is that stuff d/loaded from the net (inc. viruses) are not executable. If you regularly run a script that makes everything executable, this will include any nasty wee pieces of code that you may inadvertantly have d/loaded.
For someone moving from windows it may seem like a pain to have to use su just to use certain commands, or to access certain files, but when you realise all the benefits of doing it like this it gives you a warm cosy feeling to know how safe your computer is.
__________________
Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
smolloy is offline   Reply With Quote
Old 07-21-2005   #7 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,076
Things in /proc /sys and /dev have their permissions changed systematically all the time, and there is no reason to change them anyway. If you really must do it, maybe consider something less severe like
Code:
chmod -R 666 /*
It is asking for trouble though.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 07-22-2005   #8 (permalink)
Just Joined!
 
Join Date: Jul 2005
Location: Inside the Kernel (somewhere)
Posts: 41
Send a message via ICQ to twhiting9275 Send a message via AIM to twhiting9275 Send a message via MSN to twhiting9275 Send a message via Yahoo to twhiting9275
Setting global permissions like this is bad, bad, bad, bad, bad.
Not only is it insecure, but it will break quite a few things, such as perl scripts,
php (if compiled with suexec mode on), and numerous other things.

Permissions are setup by the distro @ default, and should be left as they are, unless they're too lenient, and then they should be changed on a case by case, file by file basis, never on a global basis.
twhiting9275 is offline   Reply With Quote
Old 07-22-2005   #9 (permalink)
Just Joined!
 
Join Date: Jun 2005
Location: North Carolina
Posts: 56
Send a message via AIM to Imscaredofgrass Send a message via MSN to Imscaredofgrass Send a message via Yahoo to Imscaredofgrass
thanks everybody

i only have one user anyways, and it gets annyoing when i try to install something and it cant overwrite a file.
Imscaredofgrass is offline   Reply With Quote
Old 07-22-2005   #10 (permalink)
Just Joined!
 
Join Date: Jul 2005
Location: Inside the Kernel (somewhere)
Posts: 41
Send a message via ICQ to twhiting9275 Send a message via AIM to twhiting9275 Send a message via MSN to twhiting9275 Send a message via Yahoo to twhiting9275
You'll still have that kind of a problem, with installing rpm based stuff. This is why you use the sudo command effectively.

I know it's annoying, but lousy permissions will cause lots of problems. Even if it's only a one user system, if it's setup with an internet connection, it can still be very hazardous to your health to do this
twhiting9275 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:08 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1