write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93
标签 Tag : sudo

sudo on cygwin

<Category: Linux> Comments Off on sudo on cygwin

有些时候必须要以root的身份执行,但是在cygwin下怎么做呢?

windows Cygwin 下使用root权限的方法,sudo 方法
修改C:\cygwin\etc\profile文件

将对应的windows用户名的那条记录,将对于的记录
medcl:unused:1001:513:Medcl’,U-BS-MEDCL\medcl,S-1-5-21-1781803582-33251031-1424578719-1001:/home/medcl:/bin/bash
修改成如下,即成
root:unused:1001:513:Medcl’,U-BS-MEDCL\medcl,S-1-5-21-1781803582-33251031-1424578719-1001:/home/root:/bin/bash

注意,切换了目录和用户账户,之前的用户下的配置都没了哦,如ssh、svn账户信息等

本文来自: sudo on cygwin

linux切换用户的时候出现“This account is currently not available”错误

<Category: Linux> Comments Off on linux切换用户的时候出现“This account is currently not available”错误

解决办法:
比如我是 su – apache的时候出现的问题
用vi看看apache的帐号信息
# vi /etc/passwd | grep apache
发现它的shell是“/sbin/nologin”,需要将起改成“/bin/bash”
# vipw /etc/passwd
修改完毕后,保存退出

本文来自: linux切换用户的时候出现“This account is currently not available”错误