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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-09-2005, 03:50 PM
|
#1
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Rep:
|
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
|
|
|
06-09-2005, 03:57 PM
|
#2
|
Member
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729
Rep:
|
Directories need an executable flag, you can still use 666 on the files it contains.
|
|
|
06-09-2005, 04:05 PM
|
#3
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
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
|
|
|
06-09-2005, 04:15 PM
|
#4
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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.
|
|
|
06-09-2005, 04:23 PM
|
#5
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
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!
|
|
|
06-10-2005, 09:44 AM
|
#6
|
Member
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210
Original Poster
Rep:
|
chmod -r 777 /directory will do everything in that directory, right?
Thanks
|
|
|
06-10-2005, 10:06 AM
|
#7
|
Member
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70
Rep:
|
Quote:
Originally posted by r3dhatter
chmod -r 777 /directory will do everything in that directory, right?
Thanks
|
yes, and in all directories below
|
|
|
All times are GMT -5. The time now is 11:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|