Hi all The trouble I am still having is creating the machine account. I get an error saying that the dir /dev/null cannot be created because a file by the name of null exists in /dev. Does the machine account need to be in /dev/null or can I change it to something else. I am running redhat 7.2. and using this script to try and create accounts /usr/sbin/useradd -g machines -d /dev/null -s /bin/false CLIENT$ Thanks Shaun
From: "Shaun Nykvist" <s.nykvist@qut.edu.au>> The trouble I am still having is creating the machine account. I get an > error saying that the dir /dev/null cannot be created because a file bythe> name of null exists in /dev. Does the machine account need to be in > /dev/null or can I change it to something else. I am running redhat 7.2. > and using this script to try and create accounts > > /usr/sbin/useradd -g machines -d /dev/null -s /bin/false CLIENT$ >Try to edit /etc/passwd manually. hth Yaya
> Hi all > > The trouble I am still having is creating the machine account. I get an > error saying that the dir /dev/null cannot be created because a file by the > name of null exists in /dev. Does the machine account need to be in > /dev/null or can I change it to something else.It should be for security reasons. But you can use an other directory and hand edit /etc/passwd later.> I am running redhat 7.2. > and using this script to try and create accounts > > /usr/sbin/useradd -g machines -d /dev/null -s /bin/false CLIENT$Look at the manpage of useradd. There should be an option not to create the home directory, may be -M. Christian> > > > Thanks > > Shaun > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >_(_)_ wWWWw _ @@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_ @@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_) @@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\ / Y \| \|/ /(_) \| |/ | \ | \ |/ | / \ | / \|/ |/ \| \|/ jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Shaun Nykvist wrote:> > Hi all > > The trouble I am still having is creating the machine account. I get an > error saying that the dir /dev/null cannot be created because a file by the > name of null exists in /dev.read the adduser manpage - there are options to say 'this really isn't a user, don't bother making the homedir'. -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net