Changeset 626350c


Ignore:
Timestamp:
04/28/15 08:50:50 (4 months ago)
Author:
Kris Moore <kris@…>
Branches:
enter/10, releng/10.1.2
Children:
07baccc
Parents:
30611f7
git-author:
Kris Moore <kris@…> (04/28/15 08:50:04)
git-committer:
Kris Moore <kris@…> (04/28/15 08:50:50)
Message:

When we setup the initial user, make sure if we have VirtualBox?
installed that they are added to the vboxusers group

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/pc-firstbootgui/firstboot.cpp

    r86b24c4 r626350c  
    607607    ufile.close(); 
    608608  } 
    609   QString userCmd = " | pw useradd -n \"" + lineUsername->text() + "\" -u "+spin_UID->cleanText()+" -c \"" + lineName->text() + "\" -h 0 -s \"/bin/csh\" -m -d \"/usr/home/" + lineUsername->text() + "\" -G \"wheel,operator\""; 
     609 
     610  QString userCmd; 
     611  if ( QFile::exists("/usr/local/bin/VirtualBox") ) 
     612  { 
     613    userCmd = " | pw useradd -n \"" + lineUsername->text() + "\" -u "+spin_UID->cleanText()+" -c \"" + lineName->text() + "\" -h 0 -s \"/bin/csh\" -m -d \"/usr/home/" + lineUsername->text() + "\" -G \"wheel,operator,vboxusers\""; 
     614  } else { 
     615    userCmd = " | pw useradd -n \"" + lineUsername->text() + "\" -u "+spin_UID->cleanText()+" -c \"" + lineName->text() + "\" -h 0 -s \"/bin/csh\" -m -d \"/usr/home/" + lineUsername->text() + "\" -G \"wheel,operator\""; 
     616  } 
    610617  system("cat " + ufile.fileName().toLatin1() + userCmd.toLatin1()); 
    611618  ufile.remove(); 
Note: See TracChangeset for help on using the changeset viewer.