Linux切换用户方式
Linux切换用户的两种实现方式
目录权限认证方式环境和 Shell 初始化总结对比sudo -su user1 与 su - user1 都可以让当前用户切换到 user1 python的身份执行命令或进入该用户的交互式 Shell。但它们在权限认证方式、环境变量继承和 Shell 初始化过[详细]
2025-07-07 10:00 分类:运维invoking proc with instance_eval with arguments?
I know this works: proc = Proc.new do puts self.hi + \' world\' end class Usa def hi \"Hello!\" end end Usa.new.instance_eval &proc[详细]
2022-12-29 04:07 分类:问答