LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-15-2004, 07:18 AM   #1
cpanelskindepot
Member
 
Registered: Jun 2004
Posts: 43

Rep: Reputation: 15
CHMOD in shell : chmod 777 /usr/ <---is that right?


Hi guys I wanted to chmod 777 the /usr/ directory
Is chmod 777 /usr/ the right command?
 
Old 07-15-2004, 08:42 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,604

Rep: Reputation: 134Reputation: 134
You may want reinstall your entire system after doing that recursivly, take care don't use the -R or -r options !
 
Old 07-15-2004, 01:28 PM   #3
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there...

that's right...
as Keefaz said, something is wrong if you need/want to make a chmod 777 /usr/...
for sure you will find out after 1 minute that was a big mistake... Safety reasons..
also, as far as I know, for chmod -R 777 /usr/ there is no UNDO !!

regards

slackie
 
Old 07-15-2004, 01:43 PM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
there is some stuff in /usr/ that is 755
and still other stuff that is 644

and there are lots of stuff that are symlinks that go
elsewhere on the system.................it's not wise at all to
change everything!!!!!!
 
Old 07-15-2004, 08:19 PM   #5
cpanelskindepot
Member
 
Registered: Jun 2004
Posts: 43

Original Poster
Rep: Reputation: 15
I think I didn't make a point that the /usr/ directory is only used as an example.
Sorry for the false alarm.

so chmod 777 /usr/ only chmods that directory, not recursively am I right?
 
Old 07-16-2004, 05:37 AM   #6
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
yes, now you are right... only the directory..

for recursive

chmod -R 777 /whatever/...

regards

slackie
 
  


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
Accessibility / password / chmod 777 Developer Beaud Linux - General 2 07-11-2005 07:46 PM
Is it safe to chmod 777 Navaboy Slackware 4 03-24-2005 06:54 AM
is it safe to set /var to chmod 777 carlosruiz Linux - Security 5 06-17-2004 05:57 AM
chmod 777 /* ziggamon Linux - Newbie 2 09-25-2003 11:40 AM
mount doesn't work as non su even after chmod 777 dokterneo Slackware 5 08-08-2003 10:48 PM


All times are GMT -5. The time now is 05:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration