PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms..win.server.scripting > Script to modify NTFS permissions on a profile folder
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Script to modify NTFS permissions on a profile folder

Réponse
 
LinkBack Outils de la discussion
Vieux 18/09/2007, 10h48   #1
SSB
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Script to modify NTFS permissions on a profile folder

Hi Everyone,

I've searched through the newsgroups re my script with no luck at all. What
I'm looking at doing is granting a user the modify NTFS permission on their
profile folder after it has been created. The users name is referenced in a
variable called userName for example, so basically, I would like to assign
the modify NTFS permission to the user that is referenced by the variable
userName. This will be used for all our new users that are created from this
point onwards.

Many thanks in advance.
S
  Réponse avec citation
Vieux 19/09/2007, 05h35   #2
JakeDAHS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Script to modify NTFS permissions on a profile folder

On Sep 18, 5:48 am, SSB <S...@discussions.microsoft.com> wrote:
> Hi Everyone,
>
> I've searched through the newsgroups re my script with no luck at all. What
> I'm looking at doing is granting a user the modify NTFS permission on their
> profile folder after it has been created. The users name is referenced in a
> variable called userName for example, so basically, I would like to assign
> the modify NTFS permission to the user that is referenced by the variable
> userName. This will be used for all our new users that are created from this
> point onwards.
>
> Many thanks in advance.
> S


What type of script are you using, that you have the variable
username? You could most likely use xcacls to modify the perms on
each folder.

see http://support.microsoft.com/kb/318754

pooradmin.com

  Réponse avec citation
Vieux 21/09/2007, 03h13   #3
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Script to modify NTFS permissions on a profile folder


"JakeDAHS" <jskiba99@gmail.com> wrote in message
news:1190176554.859647.12300@w3g2000hsg.googlegrou ps.com...
> On Sep 18, 5:48 am, SSB <S...@discussions.microsoft.com> wrote:
>> Hi Everyone,
>>
>> I've searched through the newsgroups re my script with no luck at all.
>> What
>> I'm looking at doing is granting a user the modify NTFS permission on
>> their
>> profile folder after it has been created.


I'm not sure why you'd want to reduce the permissions from FULL to MODIFY,
but...

How do you want to run this script - remotely from and admin account, or
locally in, say, the logon script?

>> The users name is referenced in a
>> variable called userName


Do you mean the environment variable %USERNAME%? If so, something like this
might work (on XP and w2k3):

cacls %userprofile% /e /c /g %userdomain%\%username%:C

It seems to me, however, that this would add a Change ACL but would not
remove the default Full setting. Perhaps you would need to revoke the user's
rights first. Unfortunately, though, if this script were being run by the
user, taking away Full access would make it difficult for the same account
to grant itself Change access.

/Al

>> for example, so basically, I would like to assign
>> the modify NTFS permission to the user that is referenced by the variable
>> userName. This will be used for all our new users that are created from
>> this
>> point onwards.
>>
>> Many thanks in advance.
>> S

>
> What type of script are you using, that you have the variable
> username? You could most likely use xcacls to modify the perms on
> each folder.
>
> see http://support.microsoft.com/kb/318754
>
> pooradmin.com
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h22.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12036 seconds with 11 queries