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

svn at pcbsd.org svn at pcbsd.org
Thu Jan 17 14:58:40 PST 2013


Author: kris
Date: 2013-01-17 22:58:39 +0000 (Thu, 17 Jan 2013)
New Revision: 21028

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

Fix a bug when we create a new user, make sure to chown the directory afterwards



Modified: pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp	2013-01-17 21:02:45 UTC (rev 21027)
+++ pcbsd/current/src-qt4/pc-usermanager/usermanagerback.cpp	2013-01-17 22:58:39 UTC (rev 21028)
@@ -432,6 +432,9 @@
 		   system(flashCmd.toLatin1());
 		}
 
+		// Set permissions
+		system("chown -R " + userIt->getUsername().toLatin1() +":" + userIt->getUsername().toLatin1() + " "  + userIt->getHome().toLatin1() );
+
                 break;
             case 3:
                 //Delete User



More information about the Commits mailing list