I've just built the Rocks 5.0 cluster and having problems creating
users accounts:
-------------------------------------------------------------------------
# useradd -c 'Esther Epstein' -n esther
useradd: cannot create directory /home/esther
# userdel esther
# rocks sync users
make: Entering directory `/var/411'
rm -rf /etc/411.d/*
make
make[1]: Entering directory `/var/411'
/opt/rocks/sbin/411put --comment="#" /etc/auto.home
411 Wrote: /etc/411.d/etc.auto..home
Size: 417/129 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --comment="#" /etc/auto.master
411 Wrote: /etc/411.d/etc.auto..master
Size: 417/134 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --comment="#" /etc/auto.misc
411 Wrote: /etc/411.d/etc.auto..misc
Size: 1098/637 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --comment="#" /etc/auto.net
411 Wrote: /etc/411.d/etc.auto..net
Size: 2058/1347 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --comment="#" /etc/auto.share
411 Wrote: /etc/411.d/etc.auto..share
Size: 425/136 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --comment="#" /etc/auto.smb
411 Wrote: /etc/411.d/etc.auto..smb
Size: 1280/770 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --nocomment /etc/passwd
411 Wrote: /etc/411.d/etc.passwd
Size: 2946/2001 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --nocomment /etc/group
411 Wrote: /etc/411.d/etc.group
Size: 1292/778 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
/opt/rocks/sbin/411put --nocomment /etc/shadow
411 Wrote: /etc/411.d/etc.shadow
Size: 1896/1229 bytes (encrypted/plain)
Alert: sent on channel 255.255.255.255:8649 with master 10.1.1.1
make[1]: Leaving directory `/var/411'
make: Leaving directory `/var/411'
### compute-0-2(stat: 0, dur(s): 6.65):
Reloading maps
### compute-0-1(stat: 0, dur(s): 6.76):
Reloading maps
### compute-0-0(stat: 0, dur(s): 6.76):
Reloading maps
--------------------------------------------------------------------------
The same problem with System -> Administration -> Users & Groups -> Add User
What I am doing wrong?
Thank you in advance!
Esther Epstein
1) Do you have two network interfaces on your frontend, and were they
configured during installation of Rocks?
2) Did any network information (address, names, etc) change since installation?
3) Does /export/home exists?
4) What happens if you "cd /home/install; ls"?
The file /etc/defaults/useradd on my Rocks 5 system has the value "HOME=/home" whereas the same file on my Rocks 4.3 system has "HOME=/export/home". Perhaps changing this would solve the problem "for good". :)
Thom
~~
Thom Savage
Systems Analyst
Computer and Information Sciences
University of Alabama at Birmingham
http://www.cis.uab.edu/
----- Original Message -----
From: est...@darwin.bu.edu
To: npaci-rocks...@sdsc.edu
Sent: Friday, September 26, 2008 12:25:30 PM GMT -06:00 US/Canada Central
Subject: Re: [Rocks-Discuss] Rocks 5.0 useradd can't create home directory
Hi Mason,
a month ago I've just installed Rocks 5.0 on a frontend and tested one
compute node with a crosscable. I have not tried "useradd" at this time.
Today I've built three compute nodes with boot CDs.
It were no network information change since installation
-------------------------------------------------------------------
root@vayu install]# cd /export/home
[root@vayu home]# ls -slag
total 16
4 drwxr-xr-x 4 root 4096 Aug 21 07:55 .
4 drwxr-xr-x 7 root 4096 Apr 30 18:44 ..
4 drwx------ 2 condor 4096 Aug 21 07:55 condor
4 drwxr-xr-x 8 root 4096 Aug 21 11:59 install
[root@vayu /]# cd /home/install; ls
cachedir contrib rocks-dist rolls sbin site-profiles
-------------------------------------------------------------------
Thanks,
Esther
Mason J. Katz writes,
I've just played with /export/home (where I could make a directory) when
I got your solution to the problem.
The "HOME=/export/home" replacement in /etc/default/useradd solves the
problem.
Esther
Thom Savage writes,
I've just played with /export/home (where I could make a directory) when
I got your solution to the problem.
The "HOME=/export/home" replacement in /etc/default/useradd solves the
problem.
Esther
Thom Savage writes,
>
Scott
/etc/default/useradd:
# useradd defaults file
GROUP=100
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
HOME=/export/home
If the HOME variable is changed to /home (from /export/home) yes, it
will break useradd. What does this file look like on your clusters?
The /etc/default/useradd file has HOME=/home and I had to change it to
HOME=/export/home.
There existed also a useradd.rpmsave with the correct "/export/home"
setting, so, some of the RPMs I installed probably moved the file? But
which RPM?
K.
# rpm -qf /etc/default/useradd
shadow-utils-4.0.17-12.el5
Bart
This message contains information that may be confidential, privileged or otherwise protected by law from disclosure. It is intended for the exclusive use of the Addressee(s). Unless you are the addressee or authorized agent of the addressee, you may not review, copy, distribute or disclose to anyone the message or any information contained within. If you have received this message in error, please contact the sender by electronic reply to em...@environcorp.com and immediately delete all copies of the message.