Skip to content

Instantly share code, notes, and snippets.

View makruger's full-sized avatar

Michael Kruger makruger

View GitHub Profile

Snipped from mailing list late august, 2016 Describles how device_id's are used.

But, on my (other PC installed OI Hipster) in /usr/share/hwdata/pci.ids I can

see it:

     15b8  Ethernet Connection (2) I219-V

pci.ids is just a copy of the device id to name mappings table from

July 28, 2016
This discussion relates to problems using the -m switch with useradd when creating new accounts.
[00:46:52] <d5end> hi. when I try to create a new user: "# useradd -m -s /bin/bash user1" I get the following error: UX: useradd: ERROR: Unable to create the home directory: Operation not applicable.
[00:48:14] <d5end> It was a bug related to this problem (issue 263) but it says it was fixed.
[00:52:24] <d5end> Well it seems it's still there
[08:29:45] <alp> d5end: so far we can't fix it properly, as home directories (/home/$user) are auto-mounted. useradd can't create directories on auto-mounted FS.
[08:36:09] <nikolam> It may be that using /export/home by default , without pointing to /home in any way, could resolve it? Still dunno why /home is there by default anyway, for some compatibility?

Snipped from openindiana-discuss IRC channel on August 30th, 2016

[12:34:58] <nikolam> pfexec uses RBAC (Role based acces control) with just enough rights given to user to perform exact task.
[12:35:34] <nikolam> That can be used to fine-grain user access, instead of sudo all or nothing
[12:35:53] <nikolam> RBAC roles are set in /etc/user_attr
[12:36:31] <dansimon> nikolam: Ah, thanks! I heard a talk from Ian Murdock speaking about this...
[12:37:24] <nikolam> Pay attention if user has "Primary Administrator" role and pfexec does NOT ask for password, it is best to give that role , if needed, to separate account form one used for desktop access
[12:37:52] <nikolam> yes, also Linus asked for something like that :)
[12:38:39] <nikolam> alternatively, one can start setting up roles with 'sudo users-admin'
@makruger
makruger / TTY.md
Last active August 30, 2016 13:49
TTY (add to FAQ as well)

Snipped from Openindiana-discuss irc channel on August 30, 2016

[11:57:57] <dansimon> Hi guys :)
[11:59:43] <nikolam> hi
[11:59:51] <Toasterson> hi
[11:59:54] <dansimon> Do you have tty's in openindiana?
[12:00:20] <Toasterson> yes but you need to start a daemon for that
[12:00:34] <dansimon> Ok, which one?
[12:00:39]  vtdaemon
@makruger
makruger / useradd.md
Last active August 30, 2016 13:47
Useradd caveats

With ZFS and automounted home directories, we cannot do a simple useradd -m <username>. Instead we must do something like this:

useradd -d /export/home/<username> -m <username>

snipped from oi irc on 8/26/16

<Toasterson> is there a cache for /etc/resolv.conf in OI
<xenol> Toasterson: what do you mean?
<xenol> there is nscd
<xenol> but it caches more things
<Toasterson> well i wanted to install a package in a zone but forgot to add dns to resolvconf. after adding dns pkg still insisted that pkg.openindiana.org was unresolvable. even when host utility proved otherwise.
<Toasterson> even a zone reboot did not help
 have you edited /etc/nsswitch.conf?