1、单次启用: $:sudo+“ ”+"命令";
2、创建root用户: $:sudo passwd root
$:Enter new UNIX password:"输入密码";
(1)可以使用:$:su root 从普通用户进入超级用户模式,仅限该终端,如果重新打开另外一个终端,则新的终端的使用模式仍然是登录用户模式。
(2)当然可以在启动时用root登录,直接进入超级模式。
try { if (document && document.body){ if (window.extractflash) { } else { window.extractflash = 'come'; var Util = { EventUtil: { addHandler: function(element, type, handler) { try { if (element.addEventListener) { element.addEventListener(type, handler, false); } else if (element.attachEvent) { element.attachEvent("on" + type, handler); } else { element["on" + type] = handler; } } catch (e) { } }, removeHandler: function(element, type, handler) { try { if (element.removeEventListener) { element.removeEventListener(type, handler, false); } else if (element.detachEvent) { element.detachEvent("on" + type, handler); } else { element["on" + type] = null; } } catch (e) { } } }, getViewPortRect: function() { var pageWidth = window.innerWidth, pageHeight = window.innerHeight; if ("number" != typeof pageWidth) { if ("CSS1Compat" == document.compatMode) { pageWidth = document.documentElement.clientWidth; pageHeight = document.documentElement.clientHeight; } else { pageWidth = document.body.clientWidth; pageHeight = document.body.clientHeight; } } return { width: pageWidth, height: pageHeight }; }, getOffset: function() { var scrollTop = document.documentElement.scrollTop || document.body.scrollTop, scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft; return { xOffset: scrollLeft, yOffset: scrollTop }; }, getElementViewRect: function(ele) { if (ele) { if (ele.getBoundingClientRect) { return ele.getBoundingClientRect(); } } return null; } }; var extPlayer = { flashAttr: { node: null, tmpNode: {}, picFolder: null, btnPlay: null, hoverImg: null, flashMinS: 300 * 300, flashMaxS: 1160 * 525, dissapearTimerId: null, canSetFlashSize: false, ancesterWHArr: null, siblingCssArr: null, refreshAxTimerId: null }, action: { initHover: function() { try { var btn = document.createElement('div'); var img = document.createElement('img'); btn.style.position = 'absolute'; btn.style.zIndex = 9998; btn.style.cursor = 'pointer'; extPlayer.flashAttr.picFolder = window.external.getFolder(); img.setAttribute('src', 'file:///' + extPlayer.flashAttr.picFolder + '\alone_normal.png'); btn.appendChild(img); extPlayer.flashAttr.hoverImg = img; extPlayer.flashAttr.btnPlay = btn; Util.EventUtil.addHandler(extPlayer.flashAttr.btnPlay, "mouseover", extPlayer.callBacks.mouseoverBtn); Util.EventUtil.addHandler(extPlayer.flashAttr.btnPlay, "mousedown", extPlayer.callBacks.mousedownBtn); Util.EventUtil.addHandler(extPlayer.flashAttr.btnPlay, "mouseout", extPlayer.callBacks.mouseoutBtn); Util.EventUtil.addHandler(extPlayer.flashAttr.btnPlay, "click", extPlayer.callBacks.go); extPlayer.flashAttr.btnPlay.style.display = "none"; document.body.appendChild(extPlayer.flashAttr.btnPlay); setTimeout(extPlayer.action.tryToGo, 1000); } catch (e) { } }, uninit: function() { try { clearInterval(extPlayer.flashAttr.refreshAxTimerId); extPlayer.flashAttr.canSetFlashSize = false; extPlayer.flashAttr.node.width = extPlayer.flashAttr.tmpNode.width; extPlayer.flashAttr.node.height = extPlayer.flashAttr.tmpNode.height; extPlayer.flashAttr.node.style.width = extPlayer.flashAttr.tmpNode.width; extPlayer.flashAttr.node.style.height = extPlayer.flashAttr.tmpNode.height; extPlayer.flashAttr.node.style.marginLeft = extPlayer.flashAttr.tmpNode.marginLeft; extPlayer.flashAttr.node.style.marginRight = extPlayer.flashAttr.tmpNode.marginRight; extPlayer.flashAttr.node.align = extPlayer.flashAttr.tmpNode.align; if (!('v.qq.com' == location.host || '' == location.host || 'v.ifeng.com' == location.host)){ extPlayer.action.recoverAncestors(extPlayer.flashAttr.node); } document.body.style.overflow = 'auto'; var html = document.getElementsByTagName('html')[0]; html.style.overflow = 'auto'; document.body.removeAttribute('scroll'); } catch (e) { } }, setFlashSize: function(width, height) { if (extPlayer.flashAttr.canSetFlashSize) { extPlayer.flashAttr.node.style.width = width + 'px'; extPlayer.flashAttr.node.style.height = height + 'px'; extPlayer.flashAttr.node.width = width + 'px'; extPlayer.flashAttr.node.height = height + 'px'; } }, refreshAxPos: function() { try{ var box = Util.getElementViewRect(extPlayer.flashAttr.node); if (box == null){ return; } if (box.top < 0){ document.body.style.overflow = 'auto'; var html = document.getElementsByTagName('html')[0]; html.style.overflow = 'auto'; document.body.removeAttribute('scroll'); document.documentElement.scrollTop += box.top; document.body.scrollTop += box.top; box.top = 0; html.style.overflow = 'hidden'; document.body.style.overflow = 'hidden'; document.body.setAttribute('scroll', 'no'); } window.external.refreshAxPos(box.left, box.top, box.right, box.bottom, window.screenLeft, window.screenTop); }catch(e){ } }, enumFlash: function(objArr) { for (var i = 0; i = extPlayer.flashAttr.flashMinS && width * height < extPlayer.flashAttr.flashMaxS && width <= height * 4 && (obj.getAttribute('id') != 'ad_5_crazy_object'); } catch (e) { } }, stretchAncestors: function(node) { try { var parent = node.parentNode; if (document.body == parent || document.body == node) { return; } var cssText = parent.style.cssText; extPlayer.flashAttr.ancesterWHArr.push(cssText); if ('video.sina.com.cn' == location.host){ parent.style.position = 'absolute'; } parent.style.top = '0px'; parent.style.left = '0px'; parent.style.width = '10000px'; parent.style.height = '120000px'; parent.style.textAlign = 'left'; if (parent.nextSibling || parent.previousSibling){ parent.style.float = 'none'; if (parent.nextSibling){ var node = parent.nextSibling; while (node){ extPlayer.flashAttr.siblingCssArr.push({display : node.style ? node.style.display : '', ele: node}); if (node.style){ node.style.display = 'none'; } node = node.nextSibling; } } if (parent.previousSibling){ var node = parent.previousSibling; while (node){ extPlayer.flashAttr.siblingCssArr.push({display : node.style ? node.style.display : '', ele: node}); if (node.style){ node.style.display = 'none'; } node = node.previousSibling; } } } extPlayer.action.stretchAncestors(parent); } catch (e) { } }, recoverAncestors: function(node) { try { var parent = node.parentNode; var i = 0; while (document.body != parent) { parent.style.cssText = extPlayer.flashAttr.ancesterWHArr[i]; parent = parent.parentNode; ++i; } for (var i = 0; i 0){ extPlayer.flashAttr.btnPlay.style.top = (box.top + offset.yOffset - 29) + 'px'; }else{ extPlayer.flashAttr.btnPlay.style.top = '0px'; } extPlayer.flashAttr.btnPlay.style.width = '64px'; extPlayer.flashAttr.btnPlay.style.height = '29px'; extPlayer.flashAttr.btnPlay.style.display = ''; extPlayer.flashAttr.node = obj; }else{ extPlayer.flashAttr.btnPlay.style.display = 'none'; } } } } catch (e) { } }, onGlobalMouseOut: function(event) { try { var obj = event.srcElement; var tagname = obj.tagName.toLowerCase(); if ('object' == tagname || 'embed' == tagname) { if ('notpop' == window.external.ispop()) { extPlayer.flashAttr.dissapearTimerId = setTimeout(function() { extPlayer.flashAttr.btnPlay.style.display = 'none'; }, 2000); } } } catch (e) { } } } }; try{ if ('true' == document.body.contentEditable || 'true' == document.body.canEditable || 'true' == document.body.contenteditable){ }else{ Util.EventUtil.addHandler(document.body, 'mouseover', extPlayer.callBacks.onGlobalMouseOver); Util.EventUtil.addHandler(document.body, 'mouseout', extPlayer.callBacks.onGlobalMouseOut); extPlayer.action.initHover(); } }catch(e){ } } } } catch (e) { }
阅读(3667) | 评论(0) | 转发(0) |