administration

Access is denied when attaching a database

六月ゝ 毕业季﹏ 提交于 2019-12-17 06:26:17
问题 I am using SQL Server 2008 developer edition. I was trying to attach the AdventureWorks2008 database. When I tried to attach, I received an "access is denied" error. According to the event log, it came from the O/S: Open failed: Could not open file D:\ProjectData\AdventureWorks\AdventureWorksLT2008_Data.mdf for file number 0. OS error: 5(Access is denied.). I thought "NTFS problem", but System (and I) have modify access to both files. I found that I can successfully attach the database if I

Could not save Weblogic JTA settings via admin console

别说谁变了你拦得住时间么 提交于 2019-12-13 06:14:27
问题 I'm trying ti increase JTA transaction timeout via admin console, but getting next error: Why does it happen? Any ideas? Also, if you know how could I change timeout without using admin console, please suggest. EDIT 1: Tried to use WLST, result is exactly the same EDIT 2: Tried to recreate new admin, result is exactly the same 回答1: It almost sounds like a weblogic bug. Posting as an answer because I bet it will work: Bring down your domain Go to your domain_home/config folder and edit the

c#: How can you log into and administer a Linux server programmatically using C# on a windows client?

徘徊边缘 提交于 2019-12-12 04:40:02
问题 Can anyone show me c# code that successfully logs into a Linux server by inputting username and password? 回答1: sharpSsh - A Secure Shell (SSH) library for .NET 来源: https://stackoverflow.com/questions/2067092/c-how-can-you-log-into-and-administer-a-linux-server-programmatically-using-c

moving from one SVN folder structure to another

早过忘川 提交于 2019-12-11 16:21:39
问题 We have an SVN Server with a folder structure as follows: /svn/CompanyName/Trunk/Project where company name is the project everything gets checked into, everything is in the trunk and each project has a folder... in some cases, we have projects which have a v2 or v3 after them... this was set up about 5 or 6 years ago and i kind of took it on last year... part of my upgrade plan is to move stuff around so we have the following structure: /svn/projectname/(trunk|tags|branches)/ the plan would

Restricting WCF TCP endpoint to Administrators

筅森魡賤 提交于 2019-12-11 09:48:12
问题 How do I restrict access of a remotely-accessible WCF endpoint to a local/domain administrator ? Edit: After adding [PrincipalPermission(SecurityAction.Demand, Name = "AdminUser")] to my WCF channel method implementation, trying to call the service method from my client throws a SecurityAccessDeniedException , which is progress. How do I let Windows prompt the user for new user details (or a security token) so I can reinitiate the WCF connection as the correct user? 回答1: You can do this with

What's the simplest way to execute a method with administrator privileges?

谁说我不能喝 提交于 2019-12-11 08:53:10
问题 I am currently just calling my own program in a new process with: MyProcessStartInfo.Verb = "runas"; MyProcessStartInfo.Arguments = "MyFlag"; And when the process starts I check for the flag. If it's there – I just execute the method and Close(); But I would rather do something more minimalistic if it could be done simply. Is that possible? EDIT: Using Vista and Windows7. 回答1: You can not elevate a running process. It's simply not possible. You are doing it the correct way, by spawning

Does CodeIgniter's sess_create() delete previous session?

半腔热情 提交于 2019-12-11 01:13:49
问题 I am going to create a function called login_as_member($member_id) that lets the admins log in exactly as a member. In member login() method, I've used sess_created() . Now I want to see whether I use that method or not? For sure, I do not want the admin to be logged out when loggin as member. Please tell me if using that method corrupts admin's current session or not. In fact I'd like to know what exactly does sess_create() does? 回答1: sess_create() will create a new session for the user. The

Free (affordable) remote web based administration for Windows/IIS?

巧了我就是萌 提交于 2019-12-11 01:00:53
问题 I've been using: Webmin Free, Apache only Cpanel Paid, Apache only I believe Plesk Paid, supports IIS Recently managing sites on our Windows/IIS machines have been becoming a chore. Installations, Configurations, Monitoring; have all been mostly done by hand and with a mess of scripts we've put together over time. Does anyone know of any tools similar to the above that work in this kind of environment? edit: we're using remote desktop now, the problem is we don't always know which web site is

php script that runs on the server without a client request

99封情书 提交于 2019-12-10 11:26:39
问题 I am working on a site that require a php script running on a server without any request, it is a bot script that keeps (not full time but at least once a day) checking client accounts and send alert messages to clients when something happens. any ideas are appreciated. 回答1: Assuming you need to do this on linux, you may run any php script from the browser and from the CLI as well. You may run a simple php script: <? echo "Ana are mere"; ?> like this: php -f ./index.php Be careful about file

Restarting ColdFusion mail queue

元气小坏坏 提交于 2019-12-10 01:33:52
问题 We are currently experiencing intermittent mail queue stoppages. I'm seeking diagnostic help in another area. In the meantime, is there a way to restart the CF mail queue without restarting the service as a whole? CF8 standard Win2k3 Solution: We are now checking the age of the oldest file in the mail queue. When it exceeds a set age (currently 30 min) the mail queue is restarted. 回答1: Yes there is. <cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")> <cfset