[PC-BSD Commits] r12255 - pcbsd/current/src-qt4/pc-usermanager

svn at pcbsd.org svn at pcbsd.org
Wed Aug 24 10:02:10 PDT 2011


Author: kris
Date: 2011-08-24 10:02:10 -0700 (Wed, 24 Aug 2011)
New Revision: 12255

Modified:
   pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp
   pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp
Log:

When adding users via GUI add them to group "operator" by default and set 
default shell to csh



Modified: pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp	2011-08-24 12:03:29 UTC (rev 12254)
+++ pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp	2011-08-24 17:02:10 UTC (rev 12255)
@@ -218,7 +218,7 @@
        if (abortAdd == 0)
        {
            qDebug() << "Before back->addUser";
-	   back->addUser(username, fullname, "/home/" + username, "/bin/sh", QString::null, password);
+	   back->addUser(username, fullname, "/home/" + username, "/bin/csh", QString::null, password);
 	   back->changePassword(username, password);
            qDebug() << "After back->addUser";
        }

Modified: pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp	2011-08-24 12:03:29 UTC (rev 12254)
+++ pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp	2011-08-24 17:02:10 UTC (rev 12255)
@@ -386,6 +386,8 @@
                     args << "-g";
                     args << QString::number(userIt->getGid());
                 }
+                args << "-G";
+                args << "operator";
                 if (validateHome(userIt->getHome()) == 3) { args << "-m"; }
 		QProcess::execute("pw", args);
                 



More information about the Commits mailing list