kadischi/post_install_scripts 07accounts.sh,1.2,1.3
Jasper O'neal Hartline (autopsy)
fedora-extras-commits at redhat.com
Sat Jun 17 20:35:57 UTC 2006
Author: autopsy
Update of /cvs/devel/kadischi/post_install_scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13870/kadischi/post_install_scripts
Modified Files:
07accounts.sh
Log Message:
Modification, forgot full path-to-filename for chroot
Index: 07accounts.sh
===================================================================
RCS file: /cvs/devel/kadischi/post_install_scripts/07accounts.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- 07accounts.sh 20 Apr 2006 16:12:36 -0000 1.2
+++ 07accounts.sh 17 Jun 2006 20:35:55 -0000 1.3
@@ -26,8 +26,8 @@
echo -n "User shell: "
read NEWSHELL
if [ -n $NEWUSERNAME ] && [ -n $NEWSHELL ]; then
- chroot $SYSDIR /usr/sbin/useradd -d /home/$NEWUSERNAME -m -s $NEWSHELL -g 100 $NEWUSERNAME
- chroot $SYSDIR /usr/bin/passwd $NEWUSERNAME
+ /usr/sbin/chroot $SYSDIR /usr/sbin/useradd -d /home/$NEWUSERNAME -m -s $NEWSHELL -g 100 $NEWUSERNAME
+ /usr/sbin/chroot $SYSDIR /usr/bin/passwd $NEWUSERNAME
echo "User: $NEWUSERNAME, Home: /home/$NEWUSERNAME, GID: 100 created successfully."
else
echo "Username or shell wasn't specified."
More information about the fedora-extras-commits
mailing list