RE: Permissions on folder

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

 



On Thu, 2005-10-13 at 18:05 +0200, nicolas Gourlé wrote:
>  It's not what I want whis this command all files which are already present can be read-write. What I want is :
> User1 create a file name tt.log
> User2 can read-write this file
> 
> But i don't want to move the umask af user1 
> I want all files create in this folder are automaticly with chmod 777
> 
1.  You probably do not want the files to be 777,  It would be much
better that they be 664.  World executable and writeable files are a big
security risk.

2.  As far as I know, there is no way to have every user _create_ files
that are read/write for everyone else unless the umask allows that.

You can set everyones umask to be 002, and make everyone a member of the
chosen group (users may be a good group choice).  Then every file they
create would be readable and writeable by other members of the same
group as well as readable by all users but not writeable by those not
members of the group.

If you insist on having the permissions set in a specific folder for
everything to be 777 (or 666) or whatever, you could simply put in an
entry in /etc/crontab like this:
     * * * * * chmod -R 777 path/to/folder/
That command would be executed once every minute and would change
anything not already having the 777 permissions to be 777 for that
folder and everything in it.

This seems a big security problem to me.

> Excuse me foor my english
>  
> 
> -----Message d'origine-----
> De : fedora-list-bounces@xxxxxxxxxx [mailto:fedora-list-bounces@xxxxxxxxxx] De la part de gezimetc@xxxxxxxxx
> Envoyé : jeudi 13 octobre 2005 17:57
> À : For users of Fedora Core releases
> Objet : Re: Permissions on folder
> 
> Quoting nicolas Gourlé <nicolas.gourle@xxxxxxxxx>:
> 
> >  Hi,
> > 
> > I search to create a folder where everybody can read-write all files 
> > (his and
> > others) Is there any permissions to put on the folder?
> > Thank you for your help!
> Hi
> try this, if folder name is "stuff"
> chmod -R 777 stuff/

> > GroOpY
> > 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux