Howto: Allagh permision se download

keramida at ceid.upatras.gr keramida at ceid.upatras.gr
Wed Jul 30 13:12:41 EEST 1997


Greetings everyone,

% On Tue, 29 Jul 1997, Internet GateWay wrote:
% 
% > Loipon, mesa apo ena programma kataskevhs selidwn kanw publish tis 
% > selides ston Linux Server se diko mou logariasmo kai oxi anonymous
% > kai otan paw na dw me ti permitions exei katebasei tis selides
% > dinei ta sygkekrimena rights -rw---- enw 8elw na dinei ta e3eis

    Auto apo o,ti kserw kanonizetai apo ton idio ton FTP daemon (ftpd)
    pou dexetai ta requests gia upload twv selidwn sou.  Ston wu-ftpd
    toulaxiston auto htan ena mikro problhma olwn, giati den xeirizetai
    swsta to umask, akoma ki an to allakseis esu explicitly protou
    fortwseis ton FTP client sou :-(  Exw kairo na asxolh0w me to 0ema,
    alla mallon isxuei akoma auto...

% > -rw-rwxrwx mhpws 3erei kaneis pws mporw na allaxw auth th katastash

    Sto telos sou exw ena scriptaki pou allazei ta directories se mode
    755 kai ta files se mode 644 ('h o,ti allo 0eleis).  Gia koita to
    kai an exeis problnma, steile (proswpiko kata protimhsh) mail.

% Isos me umask 077 prin 3ekinhseis to programma pou tis katebazei sto 
% logariasmo sou.

  Like I said,...

  Merikoi FTP servers _den_ xrhsimopoioun swsta to umask :-(

------------------- cut here : akolou0ei scriptaki ------------------
#!/bin/sh

#
# Put this in your ~/public_html directory.  Save it as "make_perms.sh"
# and then issue the following command from your ~/public_html directory
# to fix the permissions of your Homepage files/dirs.
#
#     keramida:~/public_html$ /bin/sh ./make_perms.sh

find . -type d -exec chmod 755 '{}' \;
find . -type f -exec chmod 644 '{}' \;
exit 0

# EOF
-------------------- cut here : telos tou script --------------------

P.S.:  Mia arketa kalh lush einai na exeis arxeia ./Makefile se ka0e
       upodirectory ths selidas sou, kai na kaneis polu custom allages
       sta directories, opws p.x. automath dhmiourgia arxeiwv opws
       ta: 00_INDEX.TXT, fancy_index.html, ktl. grafontas apla:\

       keramida:~/public_html$ make perms
       keramida:~/public_html$ make indices
       keramida:~/public_html$ make backup
       keramida:~/public_html$ make clean

       kai o katalogos sunexizetai, afou oi dunatothtes tou Make einai
       apeires kai stamatoun pragmatika _mono_ ekei pou stamata ki h
       fantasia tou ka0enos mas :-)

Auta...

-- 
Georgios E. Keramidas                  ()   Free Speech is not a
keramida at ceid.upatras.gr               /\   priviledge, it's a right!
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte  e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list