Removing an Excel Workbook VBA Password
A VBA project password can be removed with a hex editor. Close the workbook and open the workbook file in the hex editor. Find the string "DPB" and change it to "DPx". Save the file. Open the workbook and click OK until the workbook is open (one or more dialogs are displayed describing various problems with the VBA project). Press ALT+F11, choose the menu command Tools->VBAProject Properties, navigate to the Protection tab, and change the password but do not remove it (note the new password). Save, close, and re-open the workbook. Press ALT+F11 and enter the new password. Choose Tools->VBAProject Properties, navigate to the Protection tab, and remove the password. Save the workbook.
2011년 2월 15일 화요일
2010년 5월 4일 화요일
root 권한으로 파일실행
sudo
sudo가 설치가 안되어 있으면 visudo 등을 사용....
sudo 설치된 상태에서 /etc/sudoers에서 설정하면 특정 그룹에 있는 user가 sudo 명령어 사용할때 passwd 안묻도록 할 수 있음
if you really want to have a script run as a user and be able to execute commands as root, there are 2 options that I know of.
Use sudo with stored password:
#!/bin/sh
whoami
sudo -S -p "" whoami <<EOF
mysuperpassword
EOFWhich will output (when run as 'user'):
user
rootUse sudo with no password.
Add a list of the commands that you wish to run into the/etc/sudoersfile by runningvisudoas root. For example, to allowuserto run the commandsapache2ctlandwhoami, add the following:User_Alias SPECIAL = user
Cmnd_Alias SPECIAL_COMMANDS = /usr/sbin/apache2ctl, /usr/bin/whoami
SPECIAL ALL = NOPASSWD: SPECIAL_COMMANDSOr if you really trust
user, if it's you for example, you can allow the user to execute any command without a password:user ALL=(ALL) NOPASSWD: ALLThen when the following script is run by
user:#!/bin/sh
whoami
sudo whoamiIt will output:
user
root
피드 구독하기:
글 (Atom)