mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-29 00:06:38 +00:00
parent
ca708b4d46
commit
15d279605b
4
tomb
4
tomb
@ -1005,8 +1005,8 @@ _gpg_uid() {
|
|||||||
awk 'BEGIN { FS=":" } /^uid/ { print $10; exit}' }
|
awk 'BEGIN { FS=":" } /^uid/ { print $10; exit}' }
|
||||||
|
|
||||||
# helpers to retrieve data from passwd using getent
|
# helpers to retrieve data from passwd using getent
|
||||||
_get_username() { print ${"$(getent passwd ${1})"[(ws@:@)1]} }
|
_get_username() { getent passwd ${1} | awk -F: '{print $1}' }
|
||||||
_get_home() { print ${"$(getent passwd ${1})"[(ws@:@)6]} }
|
_get_home() { getent passwd ${1} | awk -F: '{print $6}' }
|
||||||
|
|
||||||
# $1 is the encrypted key contents we are checking
|
# $1 is the encrypted key contents we are checking
|
||||||
is_valid_key() {
|
is_valid_key() {
|
||||||
|
Loading…
Reference in New Issue
Block a user