Can we access SystemCertificates folder programmatically? - windows-runtime

Is it possible to programmatically access SystemCertificates folder in the local app package?
I have the user certificates installed into this folder :
"dir>/AppData\Local\Packages\<Package Name>\AC\Microsoft\SystemCertificates\My\Certificates"
I am not able to find a way to delete the certificates in this location. Also, when I try to do something like this (with the absolute path to the AC folder):
StorageFolder.GetFolderFromPathAsync()
it gives me "not accessible" error

Related

Can't get SACL permissions

I mounted windows network sharable folder to linux using CIFS mounting. I can get DACL permissions. But I can't get SACL permissions. Is any way there to get it?
I tried to get SACL using "getcifsacl" command. But it's only showing DACL permissions. I am expecting SACL permissions.

PhpStorm How to open the folder containing files on remote host

I'm so tired of opening each folder to get where I need to go
Go to Folder Local: Ctrl + Shift + N -> Open File > Select Opened File
Go to Folder Remote Host: ????
Is there a way to find the folder containing the file in the fastest way on the remote host?
Go to Folder Remote Host: ???? Is there a way to find the folder containing the file in the fastest way on the remote host?
If you are asking: "I have some folder name and want to type/paste it somewhere and the IDE should select that folder in the Remote Host panel"... then the answer is No.
But if you want to navigate from a local location to a corresponding remote place -- then Yes.
This works for the currently opened/active file in the Editor .. or any folder or file currently selected in the Project View panel (should also work from other places where files are listed).
It's a 2-step shortcut... and the first part is already there, on your screenshot:
Alt+F1 (which is a shortcut for Navigate | Select In...). Then just select Remote Host (3) in the popup. So the full shortcut is Alt+F1, 3.
For example: me invoking the first part of the shortcut on a themes folder selected in the Project View panel.
NOTES:
It is required that you have a Deployment entry configured in your IDE and it should be selected as Default. The "Remote Host" option will be unavailable if you have no Default deployment entry.
Obviously, the deployment entry must be configured properly (the path mappings). I mean -- you should be able to upload/download files with no issues.
If there is no active connection to the remote host yet, then the action will fail mid way (will stop after showing the Remote Host panel and establishing the connection). In such a case just repeat the shortcut again.
The action will work just fine if the Remote Host panel is already visible and there is an active connection to the remote host.
A few Help Pages links:
https://www.jetbrains.com/help/phpstorm/navigating-through-the-source-code.html#navigate_in_project_view
https://www.jetbrains.com/help/phpstorm/tutorial-deployment-in-product.html#mapping-tab

an error occurred while processing this directive in justhost

when i upload my website to my hosting Justhost it not working and it show only error like this
an error occurred while processing this directive
Please help me to correct this error
try the steps that follow:
Go to cPanel
Open File Manager from Files section
Navigate to domain folder
Check "Perms" column on far right hand side
Files should be set to: 0644 (this is the UNIX file permissions)
Folders should be set to: 0755
This will change your file permissions to their proper settings for the justhost file system. Additionally, if you have PHP code within.htm or .html files, you will need to add an additional Apache handler to tell justhost to parse these files as PHP. Do this using Apache Handlers in cPanel:

yii2 - All Files and Folders permissions are messed up. What should be the permissions of yii2 framework's directory hierarchy

I moved the complete yii2 installation from one server to another with the help of FileZilla. Sadly, Filezilla don't keep the file permissions by default, and now I'm facing issues with file / directory permissions. I would like to know what's the file permissions for different directories and files in the yii2 directory hierarchy.
You should not transfer the project this way.
Currently it's the era of version control (especially Git) and Composer.
Once you created you project locally and put it under version control, you push it to your main repository and then deploy it to production server.
No need to use Filezilla or something like that.
If your hoster limits you in that, it's better to switch to another one.
In your current situation comparing and setting permissions manually can be very tidious, some of the permissions are set during init command.
So I recommend to deploy it again using version control and Composer instead of struggling with manual permissions setting.
But just in case, I checked production server, most of the folder permissions are 0755, for files - 0644. Folders like runtime, assets have 0777 permissions and set with init command as I mentioned above.
Locally I use Vagrant and pretty much everything here has 0777 permission.

With the Sublime Text 2 SFTP plugin, when I try to save the file I get a failure (Permission denied) message. Why?

I logged in fine, as I can browse the directories fine and open the files, but when I go to save I get a permission denied error. What am I doing wrong?
Maybe simply you don't have the permission to write to the directory.
Mac or PC? I had the same problem on OSX when using SFTP with XAMPP built in FTP server (so i could update local files instead of remote).
Try modifying the permissions on your XAMPP folder (CMD + I) and set EVERYONE to READ/WRITE. Then click the cog (gear icon) and choose apply. This will apply the permissions to all subfolders as well.
Try uploading your files again and see if you still get permission denied errors.
If doing this for a remote server, you'll have to make sure your SFTP user account is listed within an allowed group or is owner of files on your server.
Hope this helps.
Yes, make sure you have write permissions. The easiest way to check and update is the follwing:
ls -al see which permissions are on your file
sudo chmod 777 file_name give permissions to desired file
See more about establishing permissions for an entire group of files http://www.rackspace.com/knowledge_center/article/how-to-add-linux-user-with-document-root-permissions
Take two steps:
check your server permission
make sure you local sftp-config.json
{
"type": "sftp", // not ftp if port is default
}