-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
confd: add support for specifying login shell for ietf-system users
- Add /bin/clish (symlink) to /etc/shells, as well as the traditional /bin/{true,false} for completeness - Validate shell string, with fallback to /bin/bash and /bin/sh - Step infix-system revision, keeping old model in tree Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
- Loading branch information
Showing
8 changed files
with
138 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../usr/bin/klish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alias cli='clish' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module infix-system { | ||
yang-version 1.1; | ||
namespace "urn:infix:system:ns:yang:1.0"; | ||
prefix infix-sys; | ||
|
||
import ietf-system { | ||
prefix sys; | ||
} | ||
|
||
include infix-system-software; | ||
|
||
organization "KernelKit"; | ||
contact "kernelkit@googlegroups.com"; | ||
description "Infix augments and deviations to ietf-system."; | ||
|
||
revision 2023-07-06 { | ||
description "Add support for user login shell."; | ||
reference "internal"; | ||
} | ||
|
||
revision 2023-04-11 { | ||
description "Initial revision."; | ||
reference "internal"; | ||
} | ||
|
||
augment "/sys:system" { | ||
description "Augment of ietf-system for modifying /etc/motd."; | ||
leaf motd { | ||
type string; | ||
description "Set the MotD (Message of the Day), shown after login"; | ||
} | ||
} | ||
|
||
augment "/sys:system/sys:authentication/sys:user" { | ||
description "Augment of ietf-system to support setting login shell for users."; | ||
leaf shell { | ||
type string; | ||
default "/bin/clish"; | ||
description "Set UNIX login shell for user, e.g., /bin/bash"; | ||
} | ||
} | ||
|
||
deviation "/sys:system/sys:clock/sys:timezone/sys:timezone-utc-offset/sys:timezone-utc-offset" { | ||
deviate not-supported; | ||
} | ||
} |