Patrick P Korsnick wrote:
i've done lots of solaris installs in the last year and one thing that
i'm still a bit foggy on is moving my user's home directories to a ZFS
filesystem.
whenever i install a system i use smc to add users and it creates their
home directories.  i then make ZFS filesystems for each user and move the
contents of the home directories to the new ZFS filesystems.  sometimes
it works fine and sometimes it breaks gnome.
i'm sure it has to do with the automounter-- i've turned off the
automounter by commenting out my users in /etc/auto_home.
one thing that's weird is in smc when you add a user it lists the home
directory as /export/home/foo, but in /etc/passwd it adds the user entry
with /home/foo.
so by disablng the automounter and fixing the /etc/passwd file to reflect
/export/home/foo i can get it to work fine.
i'm just wondering if there is a better way...
maybe using 'useradd' command and telling it to not create home
directory?

Hi Patrick,
I don't think you're using the automounter correctly.

SMC, btw, is doing the Solaris-standard thing. The
automounter will by default (iirc) assume that the
user's physical home directory location is at
/export/home/$USER, and try to mount that as /home/$USER.

So one possible way forward is to create a zfs which
is mounted at /export/home:

# zfs create -o mountpoint=/export/home mypool/fsname

That would alleviate the need to play around with the
/etc/auto_home file, and leave your user homedirs on
zfs.


Useradd, unless you specify the "-m" option, will not
create a home directory for you.


best regards,
James C. McPherson
--
Solaris kernel software engineer
Sun Microsystems
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to