Bananian Linux - Bananian Linux
View Issue Details
0000073Bananian Linux[All Projects] Generalpublic2014-12-07 09:402016-03-25 09:32
guest 
Nico 
lowminoralways
assignedopen 
 
14.11 
 
0000073: bananian uses zsh shell. New users get bash shell
Upon creating a new user,the default shell will be bash.
That can be changed of course with chsh.
However, if bananian defaults to zsh  it would be better IMHO to add zsh as a default to /etc/adduser.conf.

So 
# The DSHELL variable specifies the default login shell on your
# system.
DSHELL=/bin/bash

should be changed to
# The DSHELL variable specifies the default login shell on your
# system.
DSHELL=/bin/szh
use the useradd <some user> command
No tags attached.
has duplicate 0000048resolved Nico make zsh default for new users 
related to 0000122resolved Nico zsh configuration 
Issue History
2014-12-07 09:40guestNew Issue
2014-12-07 09:48hvdwolfNote Added: 0000105
2014-12-09 11:21hvdwolfNote Edited: 0000105bug_revision_view_page.php?bugnote_id=105#r50
2014-12-09 11:32hvdwolfNote Edited: 0000105bug_revision_view_page.php?bugnote_id=105#r51
2014-12-10 10:36NicoTarget Version => 15.04
2014-12-10 10:37NicoRelationship addedhas duplicate 0000048
2014-12-10 10:38NicoAssigned To => Nico
2014-12-10 10:38NicoStatusnew => assigned
2014-12-14 09:03hvdwolfNote Added: 0000108
2015-04-01 19:21NicoTarget Version15.04 => later
2015-04-01 19:21NicoTarget Versionlater => 16.04
2015-04-07 11:01NicoRelationship addedrelated to 0000122
2016-03-25 09:32NicoTarget Version16.04 => next

Notes
(0000105)
hvdwolf   
2014-12-07 09:48   
(edited on: 2014-12-09 11:32)
Sorry. Did not pay attention to be able to log issues anonymous.
Just registered as user hvdwolf

Edit 2014-12-9: This also requires that files .zshrc and probably .zcompdump are
copied from /root to /etc/skel to make it possible to simply populate a users folder.

Also add the following 2 lines to /etc/login.defs:
# Create users home directory
CREATE_HOME yes

In /etc/default/useradd:
Change "SHELL=/bin/sh"  to "SHELL=/bin/zsh"
Change "#HOME=/home" to "HOME=/home" to enable this setting

(0000108)
hvdwolf   
2014-12-14 09:03   
Additional request:

Please add to the /etc/skel/.profile file the following lines:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

It makes it possible to run scripts (shell, python) or compiled programs
without interfering with the system setup or even breaking the packaging system.