linux-noah/noah

groups: cannot find name for group ID xyz

anquegi opened this issue · 7 comments

I get this warning starting as sudo or not

groups: cannot find name for group ID 61

I'm on a macbook pro and a MAC os X sierra, using iterm2 with zsh, and installed noah with homebrew

╭─ ~  2.4.0@learn  SBCL 1.3.18 
╰─ noah                                       ✓  19.96 Dur  6078  13:47:23
Noah is installing the initial filesystem in ~/.noah/tree. Proceed? [Y/n] Y
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  109M  100  109M    0     0   416k      0  0:04:28  0:04:28 --:--:--  428k
 109MiB 0:00:01 [60.9MiB/s] [================================>] 100%
ubuntu is successfully installed into /Users/toni/.noah/tree
Allow noah to run as root? It's necessary for privileged commands such as sudo.
Noah is still under development, so please enable it at your own risk! [y/N] y
Password:
groups: cannot find name for group ID 61
groups: cannot find name for group ID 79
groups: cannot find name for group ID 80
groups: cannot find name for group ID 81
groups: cannot find name for group ID 98
groups: cannot find name for group ID 701
groups: cannot find name for group ID 204
groups: cannot find name for group ID 395
groups: cannot find name for group ID 398
groups: cannot find name for group ID 399
I have no name!@MacBook-Pro-de-Antonio:~$
I have no name!@MacBook-Pro-de-Antonio:~$ exit
exit
╭─ ~  2.4.0@learn  SBCL 1.3.18 
╰─ noah                                        ✓  9.41 Dur  6081  16:56:03
Allow noah to run as root? It's necessary for privileged commands such as sudo.
Noah is still under development, so please enable it at your own risk! [y/N]
* Running noah as normal user... This may cause unstable behavior of sudo executed from inside noah.
groups: cannot find name for group ID 61
groups: cannot find name for group ID 79
groups: cannot find name for group ID 80
groups: cannot find name for group ID 81
groups: cannot find name for group ID 98
groups: cannot find name for group ID 701
groups: cannot find name for group ID 204
groups: cannot find name for group ID 395
groups: cannot find name for group ID 398
groups: cannot find name for group ID 399
I have no name!@MacBook-Pro-de-Antonio:~$ exit

╭─ ~  2.4.0@learn  SBCL 1.3.18 
╰─ noah  ✓  02:43:41 Dur  6079  16:35:32
groups: cannot find name for group ID 61
groups: cannot find name for group ID 79
groups: cannot find name for group ID 80
groups: cannot find name for group ID 81
groups: cannot find name for group ID 98
groups: cannot find name for group ID 701
groups: cannot find name for group ID 204
groups: cannot find name for group ID 395
groups: cannot find name for group ID 398
groups: cannot find name for group ID 399
I have no name!@MacBook-Pro-de-Antonio:~$ exit
exit

Running into this issue also on Sierra.

Looking into it, it looks like the user groups from OSX should be copied over into the VM? All of these group IDs are the default users groups. Linux is trying to access them but the don't exist in the VM.

On top of that, my user id on OSX is 501, which is what the active user in the VM is. But that user ID does not exist in the VM environment which breaks a lot of things. (Also the cause for the "I have no name!" in the pasted comment above)

I have the exact same issue. Running on Sierra as well.

@antogerva @prawnsalad have you guys got way to overcome this issue?

Seems like some debug output. Most MacOS group names don't exist in Linux. My (Mojave) MacOS user-id is 502.

groups: cannot find name for group ID 61	localaccounts:*:61:
groups: cannot find name for group ID 79	_appserverusr:*:79:
groups: cannot find name for group ID 80	admin:*:80:root
groups: cannot find name for group ID 81	_appserveradm:*:81:
groups: cannot find name for group ID 98	_lpadmin:*:98:
groups: cannot find name for group ID 398	com.apple.access_screensharing:*:398:
groups: cannot find name for group ID 399	( com.apple.access_ssh )
groups: cannot find name for group ID 502  ( my-user-id )
groups: cannot find name for group ID 701	( com.apple.sharepoint.group.1 )
groups: cannot find name for group ID 204	_developer:*:204:
groups: cannot find name for group ID 250	analyticsusers:*:250:_analyticsd,_networkd,_timed,_reportmemoryexception
groups: cannot find name for group ID 395	com.apple.access_ftp:*:395:

I'm confused how to properly map root,wheel,adm,staff,operator,staff,users etc. I changed my user to 502 in /etc/passwd and using /Users instead of /home. Seems to work at least. dialout renamed to staff, hehe.

sudo just hanged (but fixed by adding .local to my hostname), apt update stayed at 0% (but fixed by updating /etc/resolv.conf), and can't get debugger to work somehow (but solved by specifying --strace option and/or editing some python files..).
Added NOPASSWD to sudoers file, since it would not allow password entry. But it started to work.

darkfader@Konjiki:~$ pwd
/Users/darkfader
darkfader@Konjiki:~$ sudo uname -a
sudo: setrlimit: Function not implemented  (3)
Linux Konjiki.local 4.6.4 #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 x86_64 x86_64 GNU/Linux

A lot of basic tools also rely on cap_set_proc, /proc, netlink etc. which isn't implemented. Is there a check-list of features?

I have this same issue

I have this same issue

Me too.

The "I have no name!" message can be fixed by adding a user to Linux with user ID 501.
When running noah with sudo, you can add an user by doing

useradd -u 501 linux
usermod -a -G sudo linux

to add a user named linux, and make it sudo'er.