ChinaUnix.net
相关文章推荐:

linux 切换用户

用su - 命令切换用户时,提示 Permissions on the password database may be too restrictive.(过于严格的口令限制) 请问如何解决?谢谢

by ehf001 - 数据安全 - 2011-07-07 15:45:48 阅读(6796) 回复(8)

相关讨论

su root ,也可以切换到其它用户,root是默认的,所以只要写su就可以了。 如果是临时切换可以用: sudo ls .... -------------------------------------------------------- 输入su - youruser youruser就是你要切换去的用户 -------------------------------------------------------- su - 可以切换到root,需输入root的密码。 su username 切换到username。 root切换到其他用户不需密码。 本文来自ChinaUnix博客,如...

by genious - Linux文档专区 - 2007-08-08 23:23:43 阅读(1080) 回复(0)

比如从一个普通用户帐号切换到root用户帐号,谢谢!

by afeisirius - 系统管理 - 2005-08-17 09:26:44 阅读(1081) 回复(1)

比如从一个普通用户帐号切换到root用户帐号,谢谢!

by afeisirius - 系统管理 - 2005-08-17 10:31:31 阅读(5856) 回复(4)

比如从一个普通用户帐号切换到root用户帐号,谢谢!

by afeisirius - Linux系统管理 - 2005-08-17 10:31:31 阅读(5809) 回复(4)

比如从一个普通用户帐号切换到root用户帐号,谢谢!

by afeisirius - Linux系统管理 - 2005-08-17 09:26:44 阅读(1371) 回复(1)

linux 服务器上有两个账号,用户名和密码分别为: sky abc.123 ground abc.123 假设终端当前的用户为ground,调用./changuser后,程序进入sky的权限 int main() { system("su - sky"); //切换到sky权限 } 现在的问题是在终端下提示输入密码,如何在程序中输入密码?

by caiyshsz - Linux环境编程 - 2014-03-13 13:37:18 阅读(1286) 回复(5)

各位: 你好!我想问一下这样的情况要怎么做,比如今天我们通过SSH2使用root用户连到linux服务器,安装一些东西,然后关掉这个远程。想再通过root用户连上并登陆到上次的界面该怎么做呢?

by zhangmq - Linux系统管理 - 2009-02-17 21:09:10 阅读(3169) 回复(5)

linux 启动的时候,是以root引导的,我想编一个脚本是这样的, 我用root完成一些基本启动以后,然后切换到oracle用户,然后执行一段脚本,以后返回root,继续启动。在线等,请各位哥哥姐姐帮忙~~~!

by mqk - Linux论坛 - 2004-06-05 21:23:08 阅读(1398) 回复(2)

linux 启动的时候,是以root引导的,我想编一个脚本是这样的, 我用root完成一些基本启动以后,然后切换到oracle用户,然后执行一段脚本,以后返回root,继续启动。在线等,请各位哥哥姐姐帮忙~~~!

by mqk - Linux系统管理 - 2004-06-05 21:23:08 阅读(1443) 回复(2)

linux 用户切换su 命令横杠的作用 . 最近老有同事问起这些问题,所以总结一下。 1. 首先用help理解su, sudo su, sudo 2. 其次理解"login shell" and "interactive shell". "When Bash starts executes the commands in a variety of different scripts. (1) When started as an interactive login shell: Bash reads and executes the /etc/profile (if it exists). After reading that file, it looks for ~/.bash_pr...

运维

by 中关村村草 - 监控及自动化运维技术 - 2011-11-17 15:52:00 阅读(1853) 回复(0)