View Single Post
Old 27th September 2009, 19:34
Leszek Leszek is offline
Senior Member
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek

Ok, I think I've got it! It's an environmental problem. Cron doesn't know where to find the commands so I've used full paths and it seems to work.
/usr/sbin/groupadd someuser
/usr/sbin/useradd -d /home/someuser -s /bin/bash -m -g someuser someuser
echo "someuser:somepassword" | /usr/sbin/chpasswd
Reply With Quote