linux下以其他用户执行命令

四月 1st, 2011 Posted in Ubuntu | 阅读次数: 79
双线Linux服务器合租   Nginx服务器合租   Linux服务器合租64G超大内存

Author:gaojinbo
Time:2011-04-01
Email:admin@gaojinbo.com

很多时候需要以特定的用户执行一些程序,通过以下方法就可以了,超级简单:)

 

如,以www-data用户执行svn update操作:
su -c ‘svn update /www/web/gaojinbo.com –username=gaojinbo –password=gaojinbo.com’  www-data

 

注:以上例子在ubuntu上测试通过

 

完成!

Linux主机   PHP主机   Nginx主机   双线Linux服务器

相关日志:

Tags:

14 Responses to “linux下以其他用户执行命令”

  1. asics runners Says:

    超级简单 可我还是有点绕


  2. asics kayano running shoes Says:

    !!!!!!!!!!


  3. 王红深 Says:

    您认识一个哈尔滨市的姓吴的老人吗?如果您是他找的高进波,那您给他留个言,他的QQ:864334904。谢谢!


  4. 罗兰购物网 Says:

    不认识哦,同名的很多。。


  5. 点卡代理 Says:

    不错!~~~


  6. 吃什么生发 Says:

    学习了,谢谢


  7. 网络推手 Says:

    linux做服务器系统非常强大,好好学习命令吧


  8. 鱼柳柳Nuffnang Says:

    因为不懂技术-_- 所以每一篇我都看不懂 很想留下点实质性的评论。。但是。。

    ps 我给你发邮件了,期待回复~


  9. Pregnancy Miracle eBook Says:

    Recent Interesting Websites…

    [...]below you’ll find my links page http://www.pregnancymiraclez.net/my-favourite-sites/ with some very good sites that I think you should visit[...]…


  10. Cure Panic Attacks Says:

    Recent Websites I Like…

    [...]here are some other links to sites that I link to because I think they are really worth visiting: http://www.panicattackstreatmentcure.net/links/…]…


  11. grocery outlet Says:

    Recommeneded websites…

    [...]Here are some of the sites we recommend for our visitors[...]……


  12. http://www.breitbart.tv/house-majority-whip-calls-c-span-caller-homeboy/ Says:

    You should check this out……

    [...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]………


  13. mn homes for sale Says:

    Websites worth visiting……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]………


  14. hotels in oslo Says:

    Websites worth visiting……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]………


留下您的脚印