LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-08-2005, 10:25 PM   #1
jobless_joe
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
disable write in file system


How would I go about disabling write permission to the whole hard drive for a particular user?
 
Old 01-08-2005, 11:47 PM   #2
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Rep: Reputation: 15
You could add the appropriate "umask" identifiers to the file /etc/fstab
 
Old 01-09-2005, 08:14 AM   #3
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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'
 
Old 01-12-2005, 07:52 PM   #4
jobless_joe
Member
 
Registered: Apr 2004
Posts: 49

Original Poster
Rep: Reputation: 15
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.
 
Old 01-13-2005, 07:23 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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
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'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable characters wich are added by the unix system after FTP a file TDABN77 Linux - Newbie 2 12-02-2005 01:54 PM
write error (file system full?) naijaguy Linux - Newbie 2 02-10-2005 10:55 AM
how to write (implement) file system for linux amitchakote Linux - Software 2 03-16-2004 12:39 PM
How to disable bdflush on a file system? Quartz Linux - General 5 01-16-2004 10:01 AM
how to write a fat16 file system!? Linos Linux - Software 4 09-09-2003 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration