I share a linux server with several persons. Is it better to change the permissions of files and directories under my home? I wonder others or group users will have access to or even modify my files.

Except ~/public_html, is it all right to change the permissions of all the other files and directories including hidden ones to be unreadable, unwritable and unexecutable for other and group users?

I find some directory under my home has permission like this "drwsrws---". I saw somewhere online that "s" is set-UID or set-groupID flag. But What does "s" mean actually for the group users? Is it safe to drop it?

Thanks and regards!

link|improve this question

56% accept rate
btw, this should probably be on serverfault.com – Taylor Leese Sep 15 '09 at 19:03
you mean superuser.com. – Peter Sep 15 '09 at 19:48
feedback

migrated from stackoverflow.com Sep 15 '09 at 21:55

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

Yes, you should change files/folders that you don't want read by others like this:

chmod go-rwx SECRET_FILE_OR_FOLDER

(this makes it unable to be read, written or by anyone else.)

You should also make sure you have the right modes on your home directory, eg,

chmod go-w ~
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.