Latest News:
*New 11.2 series Release:
2019-06-20: XigmaNAS 11.2.0.4.6766 - released!

*New 12.0 series Release:
2019-06-20: XigmaNAS 12.0.0.4.6766 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

git server

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Naoyuki Tai
NewUser
NewUser
Posts: 6
Joined: 25 Mar 2014 20:34
Status: Offline

git server

#1

Post by Naoyuki Tai » 01 Jun 2019 23:06

I installed "git" and am running git server on my server.

I created "git" group and user. Set up the home directory for git, and set up the ssh authorized_keys for RSA auth.

Only thing I couldn't do was to set the login shell to git-shell. So, I hacked /usr/local/www/access_user_edit.php

Code: Select all

*** access_users_edit.php.orig	2018-11-11 05:43:42.000000000 +0000
--- access_users_edit.php	2019-06-01 20:14:57.350303000 +0000
***************
*** 239,245 ****
  				'sh' => 'sh',
  				'bash' => 'bash',
  				'csh' => 'csh',
! 				'tcsh' => 'tcsh'
  			];
  			html_radiobox2('shell',gettext('Shell'),$pconfig['shell'],$l_shell,gettext('Set user login shell.'),true);
  			$l_grouplist = [];
--- 239,247 ----
  				'sh' => 'sh',
  				'bash' => 'bash',
  				'csh' => 'csh',
! 				'tcsh' => 'tcsh',
! 				'ksh' => 'ksh',
! 				'git-shell' => 'git-shell'
  			];
  			html_radiobox2('shell',gettext('Shell'),$pconfig['shell'],$l_shell,gettext('Set user login shell.'),true);
  			$l_grouplist = [];

If the shell list is filled out from /etc/shells this wouldn't be necessary. (I added ksh as well as I am used to ksh.)
This allows git server to work with relatively easy steps. Also, if this becomes the standard feature and can be done with a single page web GUI, it would be wonderful.

Post Reply

Return to “Suggestions & Requests”