[lkml]   [2005]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: FS possible security exposure ?
On Sun, 2005-12-25 at 12:29 +0300, regatta wrote:
> Hi everyone,
> I have a question regarding how Linux handle the files permission ,
> here is what I found
> When logged on to a Linux workstation a user can edit a file (even if
> the file on an NFS-mounted NAS directory) if he has write access at
> the directory level, even if the file is owned by root (or any other
> user) and is read-only.

Since you do not explain how you performed the test, it is hard to
comment, but I don't see this behaviour you describe:

trondmy@lade test$ ls -al
total 12
drwxrwxrwx 2 root root 4096 2005-12-25 10:42 .
drwxrwxrwt 10 root root 4096 2005-12-25 10:41 ..
-rw-r--r-- 1 root root 5 2005-12-25 10:42 test
trondmy@lade test$ cat >test
bash: test: Permission denied

If I use 'vi' to edit the file, then it can be modified, but the way vi
does that is to delete the old file, and create a new one with the same
name (and it will only do this if you use 'w!'). That should ordinarily
work on Solaris too.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-12-25 10:48    [W:0.043 / U:4.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site