Forum: CFEngine Help
Subject: Re: CFEngine Help: Usernames starting with numbers misinterpreted as
UID
Author: j.mullins
Link to topic: https://cfengine.com/forum/read.php?3,25788,25789#msg-25789
Below is a complete example showing incorrect behavior for both user and group
names which start with a number.
# grep 30 /etc/passwd
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
30and30:x:503:504::/home/30and30:/bin/bash
# cat debug.cf
body common control
{
bundlesequence => { "test" };
inputs => { "cfengine_stdlib.cf" };
}
bundle agent test
{
files:
"/tmp/test"
create => "true",
perms => mog("755", "30and30", "30and30");
}
# /var/cfengine/bin/cf-agent -I -K -f /var/cfengine/inputs/debug.cf
# ls -ltr /tmp/test
-rwxr-xr-x 1 30 gopher 0 May 1 14:27 /tmp/test
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine