Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:lshell [2017/11/07 16:36] – created michael | linux:lshell [2019/03/07 14:01] (current) – [Configure LShell] michael | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Install Limitet Shell: ===== | ===== Install Limitet Shell: ===== | ||
- | * '' | + | * '' |
# yum install lshell</ | # yum install lshell</ | ||
- | | + | |
+ | | ||
# apt-get install lshell</ | # apt-get install lshell</ | ||
Line 19: | Line 20: | ||
Now set the LShell as default shell for users for which you are required. For example to change the shell of user sarah. | Now set the LShell as default shell for users for which you are required. For example to change the shell of user sarah. | ||
- | < | + | < |
Enter the new value, or press ENTER for the default | Enter the new value, or press ENTER for the default | ||
Login Shell [/ | Login Shell [/ | ||
+ | ---- | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Configure LShell ===== | ||
+ | Now start with the configuration of lshell. Edit lshell configuration file '' | ||
+ | |||
+ | * <wrap em> | ||
+ | * <wrap em> | ||
+ | * <wrap em> | ||
+ | * <wrap em> | ||
+ | |||
+ | A **[default]** profile is applied for all users using lshell. You can create **[username]** section or a group **[grp: | ||
+ | |||
+ | <wrap hi>The priority order is **User** >> **Group** >> **Default**.</ | ||
+ | |||
+ | <sxh bash; highlight: [1, | ||
+ | logpath | ||
+ | loglevel | ||
+ | |||
+ | [default] | ||
+ | allowed | ||
+ | forbidden | ||
+ | sudo_commands | ||
+ | warning_counter : 2 | ||
+ | aliases | ||
+ | prompt | ||
+ | timer : 0 | ||
+ | path : ['/ | ||
+ | env_path | ||
+ | env_vars | ||
+ | scp : 1 # or 0 | ||
+ | sftp : 1 # or 0 | ||
+ | overssh | ||
+ | strict | ||
+ | history_file | ||
+ | |||
+ | [grp:wheel] | ||
+ | warning_counter : 5 | ||
+ | overssh | ||
+ | |||
+ | [raj] | ||
+ | allowed | ||
+ | path : ['/ | ||
+ | home_path | ||
+ | |||
+ | [sarah] | ||
+ | allowed | ||
+ | path : - ['/ | ||
+ | strict | ||
+ | scpforce | ||
+ | |||
+ | |||
+ | __For example User ‘rja’ and user ‘sarah’ both belong to the ‘wheel’ UNIX group:__ | ||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | |||
+ | * Users of wheel group has a warning counter set to 5 | ||
+ | * Users of wheel group is not allowed ‘ls’ command. | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | |||
+ | * Can access /etc and /var but not /usr/local | ||
+ | * Can access all commands in his PATH execpt commands – su, rm, vm | ||
+ | * has a warning counter set to 5 [default] | ||
+ | * has his home path set to ‘/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP center box 100%> | ||
+ | '' | ||
+ | * Can access /home and /usr but not /usr/local | ||
+ | * is allowed default command ‘ping’ but not ‘ls’ | ||
+ | * strictness is set to 1 (he is not allowed to type an unknown command) | ||
</ | </ | ||
Line 29: | Line 114: | ||
+ | ---- | ||
**Quelle:** https:// | **Quelle:** https:// |