Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Beware of 7 on dirs! [Re: chmod 775 on all files]

by bronto (Priest)
on Jul 30, 2003 at 10:57 UTC ( [id://279137]=note: print w/replies, xml ) Need Help??


in reply to chmod 775 on all files

Beware that giving 775 to a directory could allow members of the group owner to add and delete files into it! You don't seem to care, since you give full access to your files by the group owner (why?), but I think it's not advisable.

I'd better use find than File::Find, and do at least a:

find /home/directory -type f -print | xargs chmod 775 find /home/directory -type d -print | xargs chmod 755

This way group owner's people can still have full access to files, but, for example, can't add files in a directory of yours, which is preferrable IMHO

Ciao!
--bronto


The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://279137]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-24 22:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found