Godlike Productions - Discussion Forum
Users Online Now: 2,004 (Who's On?)Visitors Today: 796,505
Pageviews Today: 1,043,057Threads Today: 262Posts Today: 3,765
08:52 AM


Rate this Thread

Absolute BS Crap Reasonable Nice Amazing
 

Linux gurus, how do I set a directory to be read only for all users? using chmod?

 
Anonymous Coward
User ID: 77994583
United States
10/14/2019 07:02 PM
Report Abusive Post
Report Copyright Violation
Linux gurus, how do I set a directory to be read only for all users? using chmod?
How do I set permissions using chmod on a directory to be READ only and no execute rename or delete permissions?
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:03 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
is it chmod 666?
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:05 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
Or chmod 744?
Anonymous Coward
User ID: 43276244
United States
10/14/2019 07:05 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
444
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:05 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
I don't want any user to do anything except READ in a directory.
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:06 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
444
 Quoting: Anonymous JD


Thank you, I knew it was something, I couldn't remember.
Anonymous Coward
User ID: 71338836
United States
10/14/2019 07:07 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
Anonymous Coward
User ID: 78032786
Finland
10/14/2019 07:07 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
4 is read. 2 is write and 1 is execute.
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:12 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
Tired of users messing with files I want to be read only.

Thanks for the help, greatly appreciated.
Anonymous Coward
User ID: 43276244
United States
10/14/2019 07:12 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
Tired of users messing with files I want to be read only.

Thanks for the help, greatly appreciated.
 Quoting: Anonymous Coward 77994583


hf
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:12 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
4 is read. 2 is write and 1 is execute.
 Quoting: Anonymous Coward 78032786


Thanks, been a long time since I used the chmod command and forgot what the numbers were. I do know that 777 is everything.
Anonymous Coward
User ID: 78070769
United States
10/14/2019 07:13 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
This is some real guru level stuff, so it's good you came to the Linux guru forum so everyone can show you how will they know the benchide chmod octals.

Obviously, you could have looked this up faster than you could create the thread.

But then we couldn't tell you how cool you are for using Linux and needing to make a directory read only using chmod.
Anonymous Coward
User ID: 43276244
United States
10/14/2019 07:14 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
This is some real guru level stuff, so it's good you came to the Linux guru forum so everyone can show you how will they know the benchide chmod octals.

Obviously, you could have looked this up faster than you could create the thread.

But then we couldn't tell you how cool you are for using Linux and needing to make a directory read only using chmod.
 Quoting: Anonymous Coward 78070769


We also do .htaccess lol
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:17 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
This is some real guru level stuff, so it's good you came to the Linux guru forum so everyone can show you how will they know the benchide chmod octals.

Obviously, you could have looked this up faster than you could create the thread.

But then we couldn't tell you how cool you are for using Linux and needing to make a directory read only using chmod.
 Quoting: Anonymous Coward 78070769


Well, I was in a hurry and didn't want to look it up. I guess I was lazy :)
Anonymous Coward
User ID: 77935669
United States
10/14/2019 07:17 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
 Quoting: Anonymous Coward 71338836


"you do not have the required permission"

try again
Anonymous Coward
User ID: 76857890
United States
10/14/2019 07:17 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
This is some real guru level stuff, so it's good you came to the Linux guru forum so everyone can show you how will they know the benchide chmod octals.

Obviously, you could have looked this up faster than you could create the thread.

But then we couldn't tell you how cool you are for using Linux and needing to make a directory read only using chmod.
 Quoting: Anonymous Coward 78070769


We also do .htaccess lol
 Quoting: Anonymous JD


I like you .
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:18 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
I guess I need to brush up on my chmod command and learn the numbers :)
Anonymous Coward
User ID: 68936079
United States
10/14/2019 07:18 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
 Quoting: Anonymous Coward 71338836


"you do not have the required permission"

try again
 Quoting: Anonymous Coward 77935669


Run it as root or sudo.
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:19 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
 Quoting: Anonymous Coward 71338836


"you do not have the required permission"

try again
 Quoting: Anonymous Coward 77935669


Um, that command would destroy the entire O/S if you were logged in as root!
Anonymous Coward
User ID: 76857890
United States
10/14/2019 07:23 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
 Quoting: Anonymous Coward 71338836


"you do not have the required permission"

try again
 Quoting: Anonymous Coward 77935669


dude , he's trying to get you to delete your harddrive .

Similar to Del *.* /a
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:25 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
 Quoting: Anonymous Coward 71338836


"you do not have the required permission"

try again
 Quoting: Anonymous Coward 77935669


dude , he's trying to get you to delete your harddrive .

Similar to Del *.* /a
 Quoting: Anonymous Coward 76857890


I'm not THAT stupid!

I know that.
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:26 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
rm -rf /
 Quoting: Anonymous Coward 71338836


"you do not have the required permission"

try again
 Quoting: Anonymous Coward 77935669


Run it as root or sudo.
 Quoting: Anonymous Coward 68936079


Do you really think I am THAT stupid? That would delete everything on the hard drive!
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:38 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
Is always good to set the root password and let only ONE person know it, that way if the system is ever completely deleted, you know who did it. I am the only one that knows the root password, and it is very secure. NEVER give anyone the root access password.
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 07:39 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
I once heard a story about someone being fired from their job and set up a cron job to run 30 days later after they were terminated to run rm -rf / * as root, which destroys the entire file system including the O/S itself.
Anonymous Coward
User ID: 73621774
United States
10/14/2019 07:52 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
I once heard a story about someone being fired from their job and set up a cron job to run 30 days later after they were terminated to run rm -rf / * as root, which destroys the entire file system including the O/S itself.
 Quoting: Anonymous Coward 77994583


I remember that.like three years ago.a member on here.
Anonymous Coward (OP)
User ID: 77994583
United States
10/14/2019 10:10 PM
Report Abusive Post
Report Copyright Violation
Re: Linux gurus, how do I set a directory to be read only for all users? using chmod?
I once heard a story about someone being fired from their job and set up a cron job to run 30 days later after they were terminated to run rm -rf / * as root, which destroys the entire file system including the O/S itself.
 Quoting: Anonymous Coward 77994583


I remember that.like three years ago.a member on here.
 Quoting: Anonymous Coward 73621774


Last I heard they had to rebuild the entire server.

Word of advice, NEVER piss off a network administrator of fire them.

ROFL

rofl





GLP