Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to a directory when I don't have write permissions

Status
Not open for further replies.

christhedonstar

Programmer
Apr 9, 2007
215
GB
Hi,

There is a directory with the following permission:

Administrators (Full control)
CREATOR OWNER (Special Permissions)
Paul Jones (Special Permissions)
SYSTEM (Full Control)
Users (Read & Execute, List Folder Contents, Read)

I'm not an administrator and my name is Chris Jones so how come I can create a folder in the directory?

Thanks in advance,

Chris
 
Just a thought: PAUL JONES is the descriptive name and not the account name. My user account name is rstitzel but my descriptive name is Robert Stitzel. Perhaps the administrator who set up your account typed PAUL instead of CHRIS under YOUR account profile. That would be why you can create folders.
 
Not in front of that PC right now. But where I put Paul Jones there was a user id next to it which wasn't mine.
 
What are you logging on as? That should give you a clue or two.

To confirm the username after initial logon try typing %userprofile% in Start Run and see where you end up.

Have you checked out the "Special Permissions" which have been allocated to your "Paul Jones" name? To do so look under "Effective Permissions" via the Advanced button on the Security Tab page where the users are all listed.
 
Ok having looked into this further it seems that in the advanced tab there is a permissions tab which includes a permission detail to allow users to create files / write data. This was inherited from c:\

I had some c# code that was checking only the group and usernames on the first tab and checking whether the user was part of that group. It looks like you also need to check permissions objects seperately. Does what I'm saying sound about right?
 
The layman in me says that if a user has "Special Permissions" then you need to find out what they are, this is usually done via the "Effective Permissions" tab. As to where those Permissions are coming from then you will have to look at any Inheritance from Parent folders.

Selecting where to apply permissions

How inheritance affects file and folder permissions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top