Doug Scott wrote:
Bart Smaalders wrote:
Darren J Moffat wrote:
Manoj Joseph wrote:
Hi,
On a box where Solaris has been freshly installed, one sees this
behavior.
-bash-3.00# useradd manoj
-bash-3.00# tail -1 /etc/passwd
manoj:x:100:1::/home/manoj:/bin/sh
-bash-3.00# mkdir /home/manoj
mkdir: Failed to make directory "/home/manoj"; Operation not applicable
-bash-3.00# df -h /home
Filesystem size used avail capacity Mounted on
auto_home 0K 0K 0K 0% /home
While I realize why the mkdir failed, it is confusing for a new user
who just did a useradd to create a new user account and needs to
make the home directory.
This morning, I saw an instance where a Linux user trying Solaris
for the first time, found this very confusing. I am not offering
solutions. But defaults that don't confuse a new user would be nice.
Yep we know and there is a bug logged for it. Fancy fixing it so
that useradd becomes aware of the automounter and just does the
correct thing when useradd creates the home dir ? I'll sponsor the
integration of the fix for you if you like.
How about just fixing it so that the automounter finds any home
directories in /etc/passwd and mounts those on demand?
I like it but shouldn't that be anything in getpwent(3C) rather than
/etc/passwd?
Sorry, I was not speaking clearly...
We really want our home directories today to always be /home/<user>
in /etc/passwd; that way things Just Work (TM) when we move from
host to host. This does mean that we need another map to convert
from /home/barts to wherever my home directory actually is... OR we
need to change the semantics of /etc/passwd's home directory
entry to point to the user's actual home directory and use that
to drive the automounter to always force home directories to be
mounted under /home/ via either NFS or a local loop-back mount.
- Bart
--
Bart Smaalders Solaris Kernel Performance
[EMAIL PROTECTED] http://blogs.sun.com/barts
_______________________________________________
opensolaris-discuss mailing list
[email protected]