Operating System - Linux
1828334 Members
4100 Online
109976 Solutions
New Discussion

Set World Access On a File in Linux

 
SOLVED
Go to solution
Jorge Cocomess
Super Advisor

Set World Access On a File in Linux

Hi,

How can I modify an account for user A, so that everytime he writes a file with World wide access? Once the file is created, I can manually do a chmod 777 file_name.txt -- But this is manual process. I would like to setup user "A" to write with world wide access, or maybe perhaps, I can modify the directory to have world access instead.

Any ideas??

Thank you in advance.

J
1 REPLY 1
Ivan Ferreira
Honored Contributor
Solution

Re: Set World Access On a File in Linux

Edit the users profile ($HOME/.bashrc or $HOME/.bash_profile) and add a line like this:

umask 000

This will create files with world wide write access.

BUT THIS IS NOT GOOD! ITS A INSECURE METHOS OF SHARING FILES.

You should plan a good group membership structure instead of allowing world wide access to files.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?