Re: chmod, chgrp and symlinks
From: Wulfgard (wulfgard@spacemail.com)
Date: 02/03/03
- Next message: Nico Kadel-Garcia: "Re: Linux has just as many... troll?"
- Previous message: johna@onevista.com: "Re: Why aren't my IPTables working, too many IPs?"
- In reply to: luc wastiaux: "chmod, chgrp and symlinks"
- Next in thread: Nico Kadel-Garcia: "Re: chmod, chgrp and symlinks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Wulfgard" <wulfgard@spacemail.com> Date: Mon, 3 Feb 2003 00:46:22 +0100
Hello
there is a solution to disable symlinks
you can create a specific ext3 or ext2 device with the symlink option
disable and also other
things like disable execution of compiled or scripts
best regards
a++
"luc wastiaux" <luc@nospam.com> a écrit dans le message de news:
slrnb3r345.vbg.luc@grizzly.dont-panic.info...
> Consider the following shell script, run every night:
>
> #!/bin/sh
> dir="/usr/space/mp3"
>
> chown -R luc.mp3 $dir/luc/
> chown -R guy.mp3 $dir/guy/
> chown -R armelle.mp3 $dir/armelle/
> find $dir -name *.mp3 -exec chmod 640 {} \;
> find $dir -name *.pls -exec chmod 640 {} \;
> find $dir -type d -exec chmod 750 {} \;
> chmod 660 ${dir}/*.mp3 > /dev/null 2>&1
>
> The purpose of this script is to make sure that every mp3 file is readable
> by everyone in the mp3 group, but not writeable by anyone else than the
> owner.
>
> The problem is that I (as user 'luc') can create a symlink in
> /usr/space/mp3/luc to whatever interesting file I would like to see the
> contents of, or modify, and have full access to the file as soon as the
> script is run.
>
> Is there a way of changing permissions in a secure fashion ? I couldn't
> see any "don't follow symlinks" option in man chmod.
>
> thanks.
>
> --
> luc wastiaux
> $> finger luc@info.4002.org
- Next message: Nico Kadel-Garcia: "Re: Linux has just as many... troll?"
- Previous message: johna@onevista.com: "Re: Why aren't my IPTables working, too many IPs?"
- In reply to: luc wastiaux: "chmod, chgrp and symlinks"
- Next in thread: Nico Kadel-Garcia: "Re: chmod, chgrp and symlinks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|