Discussion:
EON - create user home environment - HOWTO?
Erwin Panen
2011-04-20 21:12:41 UTC
Permalink
Hi,

What would be the way to configure EON in such a way:
- creating a user would autocreate this users homedir under /zpool/home/user
- set this userdir as smb share to the user and browseable
- have consistent group & user id

Thanks a lot!

Erwin
--
This message posted from opensolaris.org
Andre Lue
2011-04-20 22:31:24 UTC
Permalink
Hi Lexje,

I'm not sure I understand what you're after but one way would be (arguments in CAPS you provide GROUP_ID,UID, USER)

useradd -g GROUP_ID -u UID -d /zpool/home/USER -s /usr/bin/false USER

zfs create -o casesensitivity=mixed -o sharesmb=on zpool/home/USER

zfs set sharesmb=name=USER zpool/home/USER

This portion optional and will require tweaking based on your permission and access needs
cd /zpool/home
chmod 755 USER
chown USER:GROUP_ID USER
chmod A+owner@:full_set:fd:allow,everyone@:read_set/execute:fd:allow USER

Hope that helps
--
This message posted from opensolaris.org
Erwin Panen
2011-04-24 17:07:44 UTC
Permalink
Happy Easter!

I see that I expressed badly:
I'm thinking of 2 different ways actually,
- local authentication, but then (usually) on linux systems, /etc/stuff are preconfigured in such a way that when you do useradd, the newly created user automagically ends up under
/home/username/ with the correct rights set to the created filestructure, I mean that also the userdir is automagically created in this 'pre-defined' location.

So how / where can I configure my system to do this consequently?

- 2ndly, how do I (best) configure multiple systems to use the same userid's and groupid's accross machines?

- I have never worked with zones, so I'm really new to zones, can they be used on EON?
- Alternatively I was thinking of setting up EON as a member of a sambadomain, or are there other alternatives at hand?

Thank you,

Erwin

Erwin
--
This message posted from opensolaris.org
Andre Lue
2011-04-24 19:45:14 UTC
Permalink
Hi Lexje,

I think we are on the same page.
useradd -D will print current defaults, where basedir=/home.

You could probably solve it a few ways:
- symlink /home to /zpool/home
- control user's home directory with the -d argument in useradd.
- change the base_dir with the -b, useradd -b /zpool/home and verify with useradd -D

Similarly, for same uid and gids across machines you could
- manually create each account with the same uid, gid values per machine
- configure nis/nfs

zones would be hard to do on EON as the binaries and super sets have been stripped away for EON's size.

If you are running the samba version then you would simply make the necessary /etc/smb.conf edits. if you are running the CIFS version you would use smbadm to join the domain.
--
This message posted from opensolaris.org
Loading...