LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-09-2005, 04:50 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
did chmod 666 on a directory but it doesn't work


can I undo chmod 666 /directory if i did this? It is only causing problems it seems..


I want to be able to access the directory with every user though, that is why I tried that


Thanks
 
Old 06-09-2005, 04:57 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Directories need an executable flag, you can still use 666 on the files it contains.
 
Old 06-09-2005, 05:05 PM   #3
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
thanks, do you happen to know the flag for "fully writeable" for directories? I did man chmod and couldn't find the flags

btw is "reformatting chmod please wait" harmful? Does it really format (delete anything)? I accidentally got that and was not sure if it was bad or not.

I also tried chmod 777 which let me read the dir but not write

Thanks
 
Old 06-09-2005, 05:15 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Fully writable directory is 777. The flags are described in this part of the man page:
Code:
       A  numeric  mode  is  from  one  to four octal digits (0-7), derived by
       adding up the bits with values 4, 2, and 1.   Any  omitted  digits  are
       assumed  to  be leading zeros.  The first digit selects the set user ID
       (4) and set group ID (2) and sticky (1) attributes.  The  second  digit
       selects  permissions  for  the  user who owns the file: read (4), write
       (2), and execute (1); the third selects permissions for other users  in
       the  file's group, with the same values; and the fourth for other users
       not in the file's group, with the same values.
I guess you get the message about reformatting when you run man chmod, right? It means it's processing the page to fit your screen. Not harmful at all.
 
Old 06-09-2005, 05:23 PM   #5
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Oh yea, you were right. I just thought it would make all the folders inside of the cmoded 777 folder also writeable but guess not. But I just did those indivudually.


Thanks for the help guys!
 
Old 06-10-2005, 10:44 AM   #6
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
chmod -r 777 /directory will do everything in that directory, right?


Thanks
 
Old 06-10-2005, 11:06 AM   #7
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 15
Quote:
Originally posted by r3dhatter
chmod -r 777 /directory will do everything in that directory, right?


Thanks
yes, and in all directories below
 
  


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
why "permission denied" though chmod 666? baosheng Linux - Networking 12 10-11-2005 12:40 AM
chmod directory help ycamera2mank Linux - Software 3 10-04-2005 12:43 AM
chmod whole directory waynejkruse10 Linux - Software 5 08-31-2005 05:57 PM
Cannot set chmod for directory to 777 or 666 q.sa Linux - Software 6 07-19-2005 10:36 AM
chmod 666 N_A_J_M Linux - General 4 02-09-2003 04:33 AM


All times are GMT -5. The time now is 12:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration