Wednesday, March 30, 2011

Permissions

add write access to current permissions for a filechmod g+w filename
remove all access for this directory and subdirectorieschmod -r go-rwx *
remove write access from everyone but youchmod go-w filename
replace current permissions for a file with those specifiedu=user, g=group, o=othersr=read, w=write, x=executechmod u=rwx,g=rwx,o=rwx filename
change group associated with fileschgrp newgroup filename
add all permissions for everyonechmod 777 filename
change ownership of fileschown newowner filename

No comments:

Post a Comment