As you know, I have two versions of my Samba upgrade howto online.  There are 
two primary differences between them.  First, one uses the RPM from samba.org 
while the other uses RPMs from RedHat rawhide.  Second, the add user script on 
the first completely bypasses the normal e-smith mechanisms and works for some 
users, while the add user script from the second one tries to use the e-smith 
way and doesn't seem to work for anybody.

The first add user script is:

add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u 

The second is:

add user script = /etc/e-smith/events/actions/machine-account-create  create-
machine-account %u 

(all on one line).  Well, the second one gives problems.  If you run it from 
the command prompt, you get

"Use of uninitialized value in string eq at ./machine-account-create line 47. 
Account [whatever] is not a machine account; create account failed." 

...which sounds like you need to run "/sbin/e-smith/db accounts set [whatever] 
machine" first.  Unfortunately, I can't feed samba both commands at once.  Do I 
just need to write a custom script that calls both of these, or is there some 
other way around this?

-- 
Dan Brown, KE6MKS, [EMAIL PROTECTED]
"Since all the world is but a story, it were well for thee to buy the more 
enduring story rather than the story that is less enduring."
 --The Judgment of St. Collum Cille  

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to