I have performed the following with lower case group and usernames and the only difference is that the error message under groupadd goes away, yet I am still unable to successfully add a user WITH a home directory.
This is in Solaris 10. I am able to add a group, add a user, add the users password but I am unable to create the users home directory, and hence login using "su - Object" cannot be done. I've already proved that using a lower case group and username is the issue. The following is a script that I ran:
Script started on Sun Jun 10 19:51:23 2012
#
# /usr/sbin/groupadd -g 1001 Object
UX: groupadd: Object name should be all lower case or numeric.
#
# tail -2 /etc/group
nogroup::65534:
Object::1001:
#
# useradd -D
group=other,1 project=default,3 basedir=/home
skel=/etc/skel shell=/bin/sh inactive=0
expire= auths= profiles= roles= limitpriv=
defaultpriv= lock_after_retries=
#
# useradd -d /home/Object -g 1001 -m -u 1001 -s /bin/sh Object
cp: /home/Object: Operation not applicable
chown: /home/Object: No such file or directory
#
# passwd Object
New Password:
Re-enter new Password:
passwd: password successfully changed for Object
#
# tail -2 /etc/passwd
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
Object:x:1001:1001::/home/Object:/bin/sh
#
# tail -2 /etc/shadow
nobody4:*LK*:6445::::::
Object:Bns3nXhBf5ju.:15502::::::
#
# su - Object
su: No directory!
#
# ls -al /home
total 3
dr-xr-xr-x 1 root root 1 Jun 10 13:31 .
drwxr-xr-x 39 root root 1024 Jun 10 18:52 ..
#
# pwd
/home
#
# whoami
root
#
# mkdir /home/Object
mkdir: Failed to make directory "/home/Object"; Operation not applicable
#
# ls -al /home
total 3
dr-xr-xr-x 1 root root 1 Jun 10 13:31 .
drwxr-xr-x 39 root root 1024 Jun 10 18:52 ..
#
# exit
#
script done on Sun Jun 10 19:56:44 2012
Thanks!
---------- Post updated at 08:26 PM ---------- Previous update was at 08:15 PM ----------
I logged out and tried to log in to the Solaris 10 graphical interface using user Object and the system will not allow the user to log in. It fails when it goes to switch to the desktop.
---------- Post updated at 08:54 PM ---------- Previous update was at 08:26 PM ----------
Well, after poking around on the Internet I figured out how to create the "home" directory for a user so that the user could log in but the directory is not located at
/home/<username>
it is located at
/export/home/<username>
so now Solaris has me wondering what /home is for? Is it just a mount point? Must be....
Thanks in any case!