当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: Developing Software in Visua
 

 

    摘要:在我们把datagrid上的数据导入到excel的时候,如果遇到比较长的数字字符串,比如身份证号码,就会在excel里当成数字看待,并转换成科学计数法的格式,造成数据的丢失,下面这个方法就解决了这个问题,并示例如何进行其它的格式化。 查看例子 outputexcel.aspx outputexcel outputexcel.aspx.csu......
    摘要:-- 按照给定的字节长度截取最大可能的中英文混合字符串,避免了半个汉字的问题create or replace function substr_gb(str_ varchar2, begin_ integer, length_ integer) return varchar2 is result varchar2(256);begin if length(substrb(str_, begin......


Developing Software in Visual Studio .NET with Non-Administrative Privileges
developing software in visual studio .net with non-administrative privileges

【程序编程相关:T001:启动

lars bergstrom 【推荐阅读:tomcat5下设置EL(express

【扩展信息:LOG4J 的初始化

visual studio core team

microsoft corporation

december 2003

summary: members of the local administrators group have privileges to perform any action on a machine. this causes both a risk to the user performing actions in that environment and to the software that they develop. this article explains how to productively develop software while logged on with non-administrative privileges. (14 printed pages)

applies to:

microsoft® windows® xp and the microsoft windows server 2003 family disk drives with ntfs file system microsoft visual studio® .net contents

introduction

group membership and permissions for the login account

performing administrative tasks

developing software

conclusion

introduction

security is important. no one argues with this and everyone spends a lot of time thinking about security issues, security bugs, and malicious users. however, very few people are willing make the effort to eradicate the largest single reason that e-mail viruses and cracks in general are so dangerous: everyone logs in as a user who is a member of the local administrators group, and most services run as administrators. the principle of "least privilege" states that running with the minimal set of rights needed to perform an action minimizes the damage done when something bad happens, whether it is a corrupt attachment in an e-mail received from outlook, or a service that has a security risk. by running programs without administrative privileges whenever possible, you ensure a more secure environment.

currently available software often requires elevated privileges in order to run correctly. to end this situation, developers must take the first step and stop running as administrators. then, if we all consistently log in, develop, and test applications as non-administrative users, the software we produce is more likely to be executable without artificial requirements of elevated privileges. until developers fix the software they are writing and shipping, users will never be able to run in a secure environment, too!

group membership and permissions for the login account

tasks such as global registration, installation of new software applications, and reconfiguring devices require administrative privileges. unless a full-time administrator manages your machine, you will need to keep one administrative account to do these tasks.

from now on, it is assumed that this user account is named ´administrator´ and is on the local machine, as opposed to a domain account. however, the user could equally well be named ´root´ as long as it is a member of the local machine´s administrators group. it is also assumed that you are working in a windows domain, and your primary login is an account in that domain of the form domain\username; however, this is not a requirement and both accounts could be on the local machine.

changing your account status

after confirming that you still have access to an administrative account, go to the user manager, remove your user account from the administrators group, and then add it to the users group and any other less-privileged groups that are appropriate. to add your user account to the users group, you must first load the microsoft management console (mmc) and the user management snap-in.

note   in most network setups, the domain´s domain users group is already a member of the local users group, so your domain account will already be in the local users group. using the microsoft management console

right-click my computer and choose manage.

—or—

on the start menu, choose run, and then type lusrmgr.msc.

you are now ready to add your account to the users group.

adding your account to less-privileged groups


...   下一页
 ·dsmp.java    »显示摘要«
    摘要:package provision;public class dsmp{ private string transactionid; private string version; private string msgtype; private string devicetype; private string deviceid; private string useridtype; privat......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE