LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   disable write in file system (https://www.linuxquestions.org/questions/linux-newbie-8/disable-write-in-file-system-275576/)

jobless_joe 01-08-2005 10:25 PM

disable write in file system
 
How would I go about disabling write permission to the whole hard drive for a particular user?

ar1 01-08-2005 11:47 PM

You could add the appropriate "umask" identifiers to the file /etc/fstab

Oliv' 01-09-2005 08:14 AM

Hello,

probably a bit harder, 'cause with ar1's method "user" will always be able to write its own /home directory... unless you also set "umask" permissions correctly in user's config file and then lock these files (for example chattr +i ~/.bashrc)

Oliv'

jobless_joe 01-12-2005 07:52 PM

Ok, i know this might seem a bit involved, but is there any way to COMPLETELY secure a linux system so that without the root password, the user can not do anything malicious? Also, If I do edit the fstab, where would I put the user name. I've read some things about it, and the five columns provide nowhere for individual access rights.

Oliv' 01-13-2005 07:23 AM

Quote:

Ok, i know this might seem a bit involved, but is there any way to COMPLETELY secure a linux system so that without the root password, the user can not do anything malicious?
I think that's impossible :( Of course you can secure your system so that anything malicious will never happen... but you can't be sure. For example a new kernel flaw appear, the attacker exploits this flaw and gain root privileges :cry:
Quote:

Also, If I do edit the fstab, where would I put the user name. I've read some things about it, and the five columns provide nowhere for individual access rights.
in the fouth column... with the options "umask=" or "user="... see man mount and the corresponding FS for more info

Oliv'


All times are GMT -5. The time now is 07:07 AM.