Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can any user access the %APPDATA% folder

Tags:

windows

Can any user access the %APPDATA% folder? Or can only administrators read & access that directory? Also, do the permissions to access this directory differ over different Windows platforms from 2k to Windows 7?

like image 781
user593747 Avatar asked Oct 01 '11 01:10

user593747


People also ask

Is AppData user specific?

The AppData folder contains custom settings and other information that PC system applications need for their operation. It is a hidden folder that includes application settings, files, and data unique to different applications on your computer. This includes all the data specific to your Windows OS user profile.

How do I access AppData for all Users?

The AppData folder for each user account can be found in the user's directory. For example, if your user name is Joe, you'll find your AppData folder at C:\Users\Joe\AppData by default.

How do I transfer AppData to another user?

Double-click AppData in the 1 and 2 directories and change the path to the folder directory you want to transfer in the pop-up box. Then copy all the data in the original AppData directory to whichever directory you modified, and finally restart your computer.

Why is AppData not in Users?

Normally, you will not find the AppData folder in your User Profile page because it is hidden by default. We will change the hidden settings and then access the file location. Make sure that you are logged in as an administrator.


2 Answers

You can see the permissions on %APPDATA% by using the icacls tool at the command prompt. Here's what it looks like on my machine:

C:\Users\davidp>icacls %APPDATA%
C:\Users\davidp\AppData\Roaming NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                                BUILTIN\Administrators:(I)(OI)(CI)(F)
                                MACHINE09\davidp:(I)(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files

What this means is that only I, administrators, and the system itself can see the folder. If you run this on a folder where other users can see it, you'll see something like this:

C:\Users\davidp>icacls c:\
c:\ BUILTIN\Administrators:(F)
    BUILTIN\Administrators:(OI)(CI)(IO)(F)
    NT AUTHORITY\SYSTEM:(F)
    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
    BUILTIN\Users:(OI)(CI)(RX)
    NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(M)
    NT AUTHORITY\Authenticated Users:(AD)
    Mandatory Label\High Mandatory Level:(OI)(NP)(IO)(NW)

Successfully processed 1 files; Failed processing 0 files

You can see that the BUILTIN\Users group can see the c:\ folder (as you would expect).

EDIT

I'm not sure how far back the %APPDATA% variable itself goes back in Windows history. I recommend checking directly. On older systems the cacls command was the predecessor to icacls. Regardless, in Windows NT-based OSes there has always been a profile area visible only to the user and administrators.

like image 184
David Pope Avatar answered Oct 25 '22 01:10

David Pope


%AppData% is a user-specific path. Yes, any user can access %appdata%, but it will go to a different directory for each user. Only an administrator can read the appdata of another user.

Do the effort of actually going to %appdata% on your machine, and looking at the path it gets converted into. Do you see what I mean?

like image 44
Mahmoud Al-Qudsi Avatar answered Oct 24 '22 23:10

Mahmoud Al-Qudsi