I install proftpd rc2 in redhat7.0.
I setup the proftpd・s umask 022 for each user.
It is because my system support cgi-bin for each user, how can I
setup each user・s cgi-bin directory・s umask to rwx--x--x?
For example
<User a's home directory> ---> I use umask 022 => it produce rw-r--r--
|
-----<subdirectory cgi-bin> --> I use umask ??? => in order to
produce rwx--x--x
Thanks you for your help.
> It is because my system support cgi-bin for each user, how can I
> setup each user's cgi-bin directory's umask to rwx--x--x?
I'm not sure if I'm totally understanding the question, but you can try
this:
su
cd /home
for i in `ls`
do
cd $i/public_html
chmod 711 cgi-bin
cd ..
done
I can think of at least a handful of other ways to do it....
--
AngryBob
headline: Microsoft hacked in the Balkans
-- www.securityfocus.com 12-15-2000
> su
> cd /home
> for i in `ls`
> do
> cd $i/public_html
> chmod 711 cgi-bin
> cd ..
> done
>
> I can think of at least a handful of other ways to do it....
Me too, of course. Some decidedly preferable ones:
sudo bash
cd /home
for i in *
do
(cd $i/public_html; chmod 711 cgi-bin)
done
(I've found the subshell approach to be more reliable than "cd .."
afterwards.)
Or just:
cd /home
sudo chmod 711 */public_html/cgi-bin
~Tim
--
And the past is sudd'nly the part |pig...@glutinous.custard.org
Of life you throw away |http://piglet.is.dreaming.org
> Or just:
> cd /home
> sudo chmod 711 */public_html/cgi-bin
I like that one.... <smile>
--
AngryBob
You've never eaten a packing peanut?
--Nick Black