Access to the path ‘C:\inetpub\wwwroot\folder\file.pdf denied

I have been dealing with an issue regarding my ELB deployment to our new test environment with a load balancer.
I previously ran the code through testing, and through RDP connection to the instance, I was able to save a PDF file I created with itextsharp under a folder I created with my code.

However, once I created the multi-instance environment and wanted to go forward with an ELB deployment, I ran into an access issue.

PdfWriter writer = PdfWriter.GetInstance(pdfDoc, new FileStream(fileName, fileMode.OpenOrCreate));

Here, I use Server.MapPath to generate the fileName variable and try to get the FileStream on the same path. The sample path I arrive at is the one mentioned in the title: ‘C:\inetpub\wwwroot\folder\file.pdf’

To make sure of things, I created a “folder” folder under my project, put a txt file under (Text.txt), published through ELB with this version, and I was able to access this file in my website’s domain with the /folder/Text.txt

I have checked out security groups and role management sections in the AWS Console, but I couldn’t find anything that resembled an I/O permission. Is there a possible workaround this issue? I searched around the Internet, but the only things I saw involved working through IIS, which isn’t useful for me, since I won’t be connecting to the instances via RDP in this case.

Thanks for any help offered.


Could not fetch email address from LinkedIn REST Api v2

vsftpd files readable by www-data

How do I setup vsftp so that I could have folder where I upload files and those files are readable by www-data?

I have created ftp folder at /var/www/test. Made a user and added it to www-data group useradd usertest -d /var/www/test -g www-data and chowned that folder chown usertest:www-data /var/www/test. Then I made a subdir in /var/www/test, chowned it by chown www-data:www-data subdir/ and set permissions for it to 755. I am able to login into ftp, but I can’t even upload a file.

Can you restrict users from using certain connectors in azure logic apps?

I’ve looked through all the permissions a user can have in regards to logic apps but I still have not be able to answer my question. Is it possible to restrict a user from using a certain connector in azure logic apps? For example, lets say I wanted users to use only the Outlook/Office 365 connector. Is this possible?

What are the benefits of the permission policy update on Android 8.0 and above? [on hold]

Android has slightly changed their permission policies on Android 8.0:

Prior to Android 8.0 (API level 26), if an app requested a permission
at runtime and the permission was granted, the system also incorrectly
granted the app the rest of the permissions that belonged to the same
permission group, and that were registered in the manifest.

For apps targeting Android 8.0, this behavior has been corrected. The
app is granted only the permissions it has explicitly requested.
However, once the user grants a permission to the app, all subsequent
requests for permissions in that permission group are automatically

For example, suppose an app lists both READ_EXTERNAL_STORAGE and
WRITE_EXTERNAL_STORAGE in its manifest. The app requests
READ_EXTERNAL_STORAGE and the user grants it. If the app targets API
level 25 or lower, the system also grants WRITE_EXTERNAL_STORAGE at
the same time, because it belongs to the same STORAGE permission group
and is also registered in the manifest. If the app targets Android 8.0
(API level 26), the system grants only READ_EXTERNAL_STORAGE at that
time; however, if the app later requests WRITE_EXTERNAL_STORAGE, the
system immediately grants that privilege without prompting the user.

What is the benefit of such change? It seems they achieve the same purpose. What could go wrong with the previous approach that the new one fixes?

Web Deploy from Visual Studio changes access to site

I am using Web Deploy to publish my site to my shared hosting at Arvixe. It works fine and the files make it there and the site works after I fix the permissions that web deploy changes, the issue is that it changes the permissions.

I don’t know if it has something to do with the line Adding ACL's for path or not, but when I deploy it changes the “Enable Write Permissions” and “Enable Directory Browsing” settings on my control panel in the shared hosting and I have to go back and select them again in order for the site to work. I don’t really need the second one, but I get access denied if I don’t have the first one set correctly.

I don’t see a setting in the web deploy settings that will allow me to specify whether or not to change any permissions – am I missing something?

Postgres GRANT ROLE of db owner to other another user not doing what expected. What am I missing?

I am a bit baffled here. Using pg 9.6

CREATE DATABASE mydb with OWNER user1;
GRANT user1 to user2;

Login as user2.


All is good up to here.

Login as user1 (DB owner).

SELECT FROM z; -- fails; table is owned by user2

Shouldn’t the db owner have access to ALL objects?

Also, if I:

GRANT user1 /* db owner */ TO user3;

I cannot access objects created by user2 even though user3 has role granted from DB owner.

call requires API level level 23 (Current min is 16) #checkselfpermission [duplicate]

I bought a cell phone to use for testing out my android apps. The cell phone API level requires a minimum of 16. I have an app that I am creating that has some code that requres an API level of 23. When I tried to change the minumum level to 16, I got an error code that stated “call requires API level level 23 (Current min is 16) #checkselfpermission”. This has to do with the bottom of my main activity, in which there is code to ask the user’s permission for access to their images. Is there a way to change it so that I can try it on the cell phone?

 public class MainActivity extends AppCompatActivity {

        EditText editText2;

    public void getPhoto() {
        Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

        public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
            super.onRequestPermissionsResult(requestCode, permissions, grantResults);

            if (requestCode ==1){
                if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED);{

            protected void onCreate (Bundle savedInstanceState) {

                editText2 = (EditText) findViewById(;

                editText2.setOnKeyListener(new View.OnKeyListener() {
                    public boolean onKey(View v, int keyCode, KeyEvent event) {
                        if ((event.getKeyCode() == KeyEvent.KEYCODE_ENTER) && (event.getAction() ==
                                KeyEvent.ACTION_DOWN)) {
                            String currentStr = editText2.getText().toString();
                            String temp[] = currentStr.split("\n");
                            String result = "";
                            for (int i = 0; i < temp.length - 1; i++) {
                                result += temp[i] + "\n";
                            if (temp.length == 1) {
                                result = result + "\u2022 " + temp[temp.length - 1];
                            } else {
                                result = result.substring(0, result.length() - 1);
                                result = result + "\n\u2022 " + temp[temp.length - 1];
                        return false;


        protected void onActivityResult(int requestCode, int resultCode, Intent data) {
            super.onActivityResult(requestCode, resultCode, data);

            if (requestCode ==1 && resultCode == RESULT_OK && data != null) {
                Uri selectedImage = data.getData();

                try {
                    Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);

                    ImageView imageView2 = (ImageView) findViewById(;

                } catch (IOException e) {

            public void click(View view) {
                if (checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){
                    requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, 1);
                } else {

In Settings -> Apps -> AppName, is there a way to password-protect the permissions menu?

I’ve installed a filtering software on my son’s Android phone, but he knows how to bypass it by revoking the Phone permissions in the filter app’s settings. Is there a way for me to password-protect the page where app permission can be changed?

Thank you!

Facebook API v2.12 permission error

I have requested api for retreive data from open facebook group. I know that user_managed_groups permission should be approved by facebook, but if I add someone as tester they should have that permission to read the group. Or am I wrong?

Even if the test user member of group with v2.12 api call I can’t retreive any data, because it says permission denied. When I try v2.11 ( of course only in graph explorer ) then the data appears.

Is this happens because user_managed_groups is not enough permission to give to the test user?
This is with v2.12 api call