LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2003, 04:26 PM   #16
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51

its not really a good idea to go chmod -R'ing, and to be honest not worth it, for the amount of time it takes to su, cp/ln, exit. and some files need to be owned by root so copying them there as a different user wont work. and dont forget the security risks involved, ask yourself why linux viruses are almost non-exidtent. chown would probably be a better(not much though) option than chmod. but anyway

dont go chmod -R'ing anything with a bin/sbin directory in it. dont add executable permissions to non executable files - this has the possibility of making autocomplete an absolute nightmare. avoid /var, /home, /tmp, /etc, /dev. apart from that you should be ok - dont quote me on that i could have easily forgotten something.

if there are readonly areas you write to regularly, then consider putting the actual files somewhere else and symlink the directory to where it should be, thats a much neater solution
 
Old 08-10-2003, 04:31 PM   #17
Dodge This
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
you mentioned security- maybe i got hacked or somethin the first time around....it seems to be up in the air as to why my root password didnt work, because i KNOW i didnt touch it..it all went downhill in one terminal window

yow!

ill definately heed your advice about takin it easy on chmod....prior to this incident i used the root account for 100% of everything i did, and was in the process of switching to a user account because i had everything set up how i wanted it to be, despite everythin i'd read about steering clear of the root account unless very necissary.

i guess its safe to say i only learn things the hard way :-P

later!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ok, so I broke it.. Sanguines Linux - Software 4 08-25-2005 11:46 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
A quick q: how to view chmod stuff? orange400 Linux - General 2 04-23-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration