<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello:<br><br> I'm creating user accounts in Active Directory using ldap commands.<br> Later, I create his "homeDirectory" using cifs using:<br><b> new (SmfFile('smb://DOMAIN;username:passwd@server/share/User').mkdir();</b><br><br> with username an Active Direcctory account to create the account and "User" the home directory for user "User".<br><br> But now, I need to change owner of the folder from "username" to the new "User". And assign necessary permissions to other users and groups.<br> Example:<br> I've used a user called "admin" to create the user "user1". And I'd like to change permission to allow other users/groups to access this share:<br> I need to change owner on folder "user1" from "admin" to "user1".<br> Allow acess:<br> DOMAIN\Adminsitrators --> All permissions.<br> DOMAIN\Operator --> Read, Write, execution.<br> DOMAIN\user1 --> Read, Writ, Execution, Modify, Read an execute.<br><br> Can any tell me if is possible?<br><br> I'm using CIFS 1.2.25 (not allowed to upgrade java).<br><br> Thanks<br><br><br> </div></body>
</html>