<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Oct 13, 2015, at 4:48 PM, Camilo Vieira <<a href="mailto:camilo.vieira@gmail.com" target="_blank">camilo.vieira@gmail.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><blockquote type="cite"><div><div class="h5">
<br>
</div></div><div><div><div class="h5">
<div dir="ltr">Hi! 
<div><br>
</div>
<div>I created an user marcio and changed the home directory to  /opt/files.</div>
<div><br>
</div>
<div>I need this user create files in this diretory with rwx-rwx-rwx permitions, in order the allow any user to read/write/execute.</div>
<div><br>
</div>
<div>Somebody can help me?</div>
<div><br>
</div>
<div>Thanks!</div>
</div></div></div><span class=""><font color="#888888">
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></span></div>
</blockquote>
</div>
On Tue, Oct 13, 2015 at 2:14 PM, Nathaniel Biser <span dir="ltr"><<a href="mailto:nbiser@outlook.com" target="_blank">nbiser@outlook.com</a>></span> wrote:<br>




Hi, 
<div><br>
</div>
<div>All you need to do to change the file permissions is this command:<b> chmod +x</b><i style="font-weight:bold"> files
</i> I think that files are automatically created with read and write permissions...</div>
<div><br>
</div>
<div>Hope this what you need!</div>
<div><br>
</div>
<div>Cheers, </div>
Nbiser<br>



</div>
</div>

<br><br></blockquote><div>That only works after the files are created, and perhaps after the process that created them has finished.  Depending on how that is done, it may be more or less easy to arrange.  In shell, it's trivial.  In C and a number of other languages it's the system(2) call.<br><br></div><div>To arrange this when the file is first created depends even more on the capabilities of the language being used, and would require modifying the system call or function that creates the file.  In C, you could modify the arguments to fopen(3). creat(2) or open(2).   Other languages have varying arrangements for this.<br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Kevin O'Gorman<br></div>#define QUESTION ((bb) || (!bb))   /* Shakespeare */<br><br><div><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"></span></span><table width="448" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="25"><img src="cid:XVHDKDFDBURW.IMAGE_60.gif" height="21" width="25"></td>
<td width="423"><span style="font-family:Verdana,Geneva,sans-serif;color:rgb(0,153,0);margin-left:5px;font-size:10px">Please consider the environment before printing this email.</span></td></tr></tbody></table><br></div></div></div>
</div></div>