Re: Creating files and directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 05:34 5/11/2004, Manuel Arostegui Ramirez wrote:
 --- Deleo Paulo Ribeiro Junior <deleo@xxxxxxxxxxx>
escribió:
> I would like to have the status Read / Write /
> Execute to Group set automaticaly.

You can set an alias like alias mdkdir="mkdir && chmod
777 -R"

NO!


Manuel, the advice you gave is not only wrong, it is also dangerous. Paulo asked how to give "rwx" permissions to the group, and you told him to give the ENTIRE WORLD permission to read and write to his directories. This is an enormous security hole and should NEVER be done. For the record:

1. The permissions Paulo desires are 775, or "rwxrwxr-x".

2. If you used 775 instead of 777, your command would work. However, it is not the best way.

3. The correct answer is to change the "umask" variable as others have pointed out.

Cheers,


-- Rodolfo J. Paiz rpaiz@xxxxxxxxxxxxxx http://www.simpaticus.com


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux