Skip to content

Commit

Permalink
Define default path to each account.
Browse files Browse the repository at this point in the history
* When we use su command, it's better to get a homedirectory
* Some command can require it to set user directory (as a rsync, 
crontab, ...)
* close #2
  • Loading branch information
camlafit committed Dec 24, 2018
1 parent 3f57054 commit 2adb449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/share/alternc/panel/class/m_nss.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function define_passwd_file()
$lines=array();
$lines[]='##ALTERNC ACCOUNTS START##';
while ($db->next_record()) {
$lines[] = $db->f('login').":x:".$db->f('uid').":".$db->f('uid').":::/bin/false";
$lines[] = $db->f('login').":x:".$db->f('uid').":".$db->f('uid')."::".getuserpath($db->f('login')).":/bin/false";
}
$lines[]='##ALTERNC ACCOUNTS END##';

Expand Down

0 comments on commit 2adb449

Please sign in to comment.