[Translated] 20141224 Calife--A lightweight alternative to sudo.md

This commit is contained in:
GOLinux 2014-12-31 08:27:07 +08:00
parent 82ac18e7e6
commit 3b192a8aed
2 changed files with 75 additions and 71 deletions

View File

@ -1,71 +0,0 @@
Translating by GOLinux!
Calife A lightweight alternative to sudo
================================================================================
Calife requests user's own password for becoming login (or root, if no login is provided), and switches to that user and group ID after verifying proper rights to do so. A shell is then executed. If calife is executed by root, no password is requested and a shell with the appropriate user ID is executed.
The invoked shell is the user's own except when a shell is specified in the configuration file calife.auth.
If "-" is specified on the command line, user's profile files are read as if it was a login shell.
This is not the traditional behavior of su.
Only users specified in calife.auth can use calife to become another one with this method.
calife.auth is installed as /etc/calife.auth
### Calife Features ###
Here is an extensive list of features:
you keep your environment variables and shell aliases intact
it has start and end of session logging
you can have a list of all permitted logins for each calife user. That way, you can give a user newsmasters rights without giving out the root password
you can specify a group in the configuration file instead of the logins of all administrators: Juste use @staff or %staff and all members of the staff group will have access to calife
calife can also be used to become users even if they have no home directory or even no shell. Thats very practical if you want to become uucp or even bin
you can make calife runs a specific system-wide script at the end of the session (to send a mailabout what was done as root for example)
### Install calife in ubuntu ###
Open the terminal and run the following command
sudo apt-get install calife
### Using Calife ###
### Syntax ###
calife [-] [login]
Check calife manpage for more details
--------------------------------------------------------------------------------
via: http://www.ubuntugeek.com/calife-a-lightweight-alternative-to-sudo.html
作者:[ruchi][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:http://www.ubuntugeek.com/author/ubuntufix
[1]:
[2]:
[3]:
[4]:
[5]:
[6]:
[7]:
[8]:
[9]:
[10]:
[11]:
[12]:
[13]:
[14]:
[15]:
[16]:
[17]:
[18]:
[19]:
[20]:

View File

@ -0,0 +1,75 @@
Calife —— 一个轻量级的sudo替代方案
================================================================================
Calife要求用户用户以自己的密码登录或者root如果没有提供登录在验证具有正确的权限后就会切换到该用户以及组身份然后就会执行一个shell。如果calife是由root执行的不需要密码一个具有恰当用户ID的shell就会被执行。
唤醒的shell是用户自身的除非在calife.auth配置文件中指定了某个shell。
如果在命令行指定了“-”选项就会读取该用户的环境文件该shell就像是一个登陆shell。
这不是su的惯用操作。
只有在calife.auth中指定的用户才能使用此方法通过calife成为另外一个用户。
calife.auth安装位置处于/etc/calife.auth。
### Calife特性 ###
这里给出了一个关于calife特性的扩展列表
你可以完整保留环境变量和shell别名
它可以全程记录会话开始到结束
你可以为每个calife用户许可的登录制作列表那样你就可以用户赋予主管权限而不必提供root密码
你可以在配置文件中指定一个组来取代所有管理员登录:只要使用@staff或者%staff那么所有staff组中的成员都将具有访问calife的权限
calife也可以成为那些没有家目录或甚至没有shell的用户。如果你想要成为uucp或者甚至是bin那会很实用
你可以让calife在会话结束时运行一个指定的系统范围的脚本例如发送一封邮件告知以root身份做了哪些事
### ubuntu中安装calife ###
打开终端,然后运行以下命令
sudo apt-get install calife
### 使用Calife ###
### 语法 ###
calife [-] [login]
详情请参与calife手册页
--------------------------------------------------------------------------------
via: http://www.ubuntugeek.com/calife-a-lightweight-alternative-to-sudo.html
作者:[ruchi][a]
译者:[GOLinux](https://github.com/GOLinux)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:http://www.ubuntugeek.com/author/ubuntufix
[1]:
[2]:
[3]:
[4]:
[5]:
[6]:
[7]:
[8]:
[9]:
[10]:
[11]:
[12]:
[13]:
[14]:
[15]:
[16]:
[17]:
[18]:
[19]:
[20]: