permissions

Permission denied when trying to write to file from a view

强颜欢笑 提交于 2019-12-09 13:26:31
问题 I've created a chat for this question: here I have a view that attempts to execute f = open('textfile.txt', 'w') but on my live server this brings up the error [Errno 13] Permission denied: 'textfile.txt' . My file structure is as follows: - root | - project | - app | - media where the view lives in app . I have tried having textfile.txt live in root, project, app and media all of which have 777 file permissions (owner, group and public can read, write and execute)[*1]. If I change the

The SELECT permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo'

自古美人都是妖i 提交于 2019-12-09 13:22:59
问题 I'm getting the following error when trying to read a SQL Job. The SELECT permission was denied on the object 'sysjobs', database 'msdb', schema 'dbo' How can I fix this? 回答1: You need to GRANT the SELECT permission for the user of your job. A simple GRANT . USE pubs GO GRANT SELECT ON authors TO public GO Further information about GRANT 回答2: You use the "SQL Server Agent Fixed Database Roles" in msdb (MSDN link): don't assigned permission directly, it'll be a pain to manage And a "how to"

Play a sound on my backgrounded app when the phone is in silent mode

萝らか妹 提交于 2019-12-09 13:13:37
问题 I've built a timer app and one problem I have is when it's backgrounded, I'm unable to ring the timer if the user has volume off. Turning the volume or sound off also mutes notifications, which is the method I was using for ringing the timer in the background. I just bought a tile and discovered it can ring your phone even on silent. I have tested this and it works in iOS 9, but I'm not sure how to duplicate this behavior. How is ringing the iPhone in silent mode accomplished? Background

Updating permissions on Amazon S3 files that were uploaded via JungleDisk

梦想与她 提交于 2019-12-09 12:55:55
问题 I am starting to use Jungle Disk to upload files to an Amazon S3 bucket which corresponds to a Cloudfront distribution. i.e. I can access it via an http:// URL and I am using Amazon as a CDN. The problem I am facing is that Jungle Disk doesn't set 'read' permissions on the files so when I go to the corresponding URL in a browser I get an Amazon 'AccessDenied' error. If I use a tool like BucketExplorer to set the ACL then that URL now returns a 200. I really really like the simplicity of

Running git pull from a php script

感情迁移 提交于 2019-12-09 09:18:08
问题 I was trying the Perfect Workflow, with Git, GitHub, and SSH, and i have everything set up, except running the command git pull from php. When i run exec('git pull') i get: Could not create directory '/.ssh'. Host key verification failed. fatal: The remote end hung up unexpectedly If i run it in the terminal (as root) it works just fine, but i need this hook to work from the Post-Receive URL (Github). If i do exec('whoami') i get apache . It's a (dv) from mediatemple with CentOS. 回答1: If you

remote sc OpenSCManager query failed 5 access denied

荒凉一梦 提交于 2019-12-09 08:38:37
问题 I'm writing a script that periodically checks that certain services are running on remote workstations. I'm having a devil of a time getting an "SC \workst1 query" command working from one test machine to another. Both machines are running XP pro SP3. Neither is part of a domain. Both are in the same workgroup, and the administrator accounts have the same passwords. I keep getting the "[SC] OpenSCManager FAILED 5: Access is denied" message, from either workstation to the other. I have tried

User permission error when accessing “user instance” database from ASP.NET

倖福魔咒の 提交于 2019-12-09 07:38:05
问题 The server hosting csharpindepth.com has recently been migrated. Most of it is working fine, but I can't get at the database used to hold errata, notes etc. Relevant details: 32 bit Windows Server 2003 SQL Server Express 2005 installed ASP.NET pool running under "NETWORK SERVICE" account .NET 3.5 Everyone has full permission to database files (at the moment, just to rule that out!) Connection string: Data Source=.;AttachDbFilename=|DataDirectory|\WebSiteData.mdf; Integrated Security=True;User

Common CMS roles and access levels

痴心易碎 提交于 2019-12-09 04:03:47
问题 I am currently writing a CMS and remember someone (it might have been on here) criticise the existing CMS for not having a robust enough user permissions system. I've got a method planned out but it I feel it has fallen into the usual trap of being a bit too fine-grained which makes understanding and implementing it a horror for end users. I think having a range of default user roles with permissions would be the answer to this, so I suppose my question is this: What are the default roles you

Access to the path 'C:\Users\xxx\Desktop' is denied

空扰寡人 提交于 2019-12-09 02:07:30
问题 I have thoroughly searched the entire access denied questions and did't find any question related to access to windows form on my own system all the questions are related to web app. public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { byte[] imgdata; FileStream fsrw; string fname; openFileDialog1.Filter = "Sai Files(*.JPG;*.GIF)|*.jpg;*.gif|All files (*.*)|*.*"; openFileDialog1.ShowDialog();//opens the dialog

What do the different DCOM / COM security settings mean?

你离开我真会死。 提交于 2019-12-08 23:45:00
问题 Our application uses COM and DCOM extensively, and so as part of that we need to ensure that the COM security permissions are correctly set up. I know that I can access these permissions under the Component Services MMC snap in and that I can set the defaults / limits under the property pages for the Computer And that under the DCOM Config node I can drill down and set securty permissions for individual applications I also understand the relationship between the "Defaults" (what DCOM