【问题标题】:How to create an user in linux using python libuser [closed]如何使用python libuser在linux中创建用户[关闭]
【发布时间】:2013-10-09 15:59:59
【问题描述】:

我今天正在使用带有操作系统库的 linux 的命令 adduser。但想使用 python libuser 进行管理命令作为添加新用户。

【问题讨论】:

  • Diego Herranz,它不是重复的。我想如何使用 libuser 在 linux 中创建用户。这个问题只展示了如何在 linux 中创建用户。

标签: python


【解决方案1】:

【讨论】:

  • 在您的脚本中我遇到以下错误:SystemError: could not open configuration file /etc/libuser.conf': No such file or directory`
  • 不是我的脚本,我指的是作为 libuser 代码库一部分的现有脚本。看起来库代码需要配置文件存在。那么,也许创建它?
  • 我还应该使用sudo 运行脚本吗?
猜你喜欢
  • 2011-03-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-09-12
相关资源
最近更新 更多