file security/protection


 
Thread Tools Search this Thread
Operating Systems Linux file security/protection
# 1  
Old 05-13-2011
Question file security/protection

Hi All

I am working on a site to help newbie to learn linux for free.

demo.freelinuxconsole.info
there is only one file index.php its been able to rename or deleted.

Kindly let me know what permissions should i give to secure this file from editing or deleting by others.
# 2  
Old 05-13-2011
Code:
chown adminuser:admingroup yourfile
chmod 444 yourfile

if a user "demo" logs in , it should be able to only read yourfile
yourfile must Not be owned by the user "demo"

I have no doubts there are some guys around that can help you better than i with security related stuff.

You can also look around in the forums, Perderabo has made some detailed post about how works rights/access/sticky bits ...

Last edited by ctsgnb; 05-13-2011 at 05:18 PM..
# 3  
Old 05-13-2011
i already tried 444 too.
but what should be the user. bcos it resturns with 500 internal server error if i chown the file to root.
any other ways to protect the file.
demo.freelinuxconsole.info/index2.php
# 4  
Old 05-13-2011
Tell more about what you run : linux ? virtualized linux on windows?
apache server ?
# 5  
Old 05-13-2011
i just created a new account in my cpanel and using a script downloaded from codecanyon.net. mine is a dedicated server is with servint running centos.

attached is the script file
# 6  
Old 05-13-2011
Sorry, i am not a PHP coder, i am afraid i cannot help much in this area ... i would have to learn it first Smilie
# 7  
Old 05-13-2011
i just need how some help in linux file permission to protect this file from editing by others.
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File Protection and Security

Since I'm just new in unix, can I ask the experts on how I can develop or enhance a unix utility in protecting or securing a file using scripts. Im thinking chmod, is it enought? or are there other utilities in unix? My algorithm is like there will be a menu that shows a list of types of... (2 Replies)
Discussion started by: imjustjong
2 Replies
Login or Register to Ask a Question