days = daysField.getText ();. setText ("passwd" + parameter + "" + days + "" +
username);} makeAddgroupCom () {groupname = addgroupName.getText (); option = addgroupOpt.getSelectedItem (). toString (); gid = addgroupGid.getText (); system = "" ; (systemGroup.isSelected ()) = "- system";. setText ("addgroup" + system + "" + option + "" + gid
+ "" + groupname);}
makeDelgroupCom () {groupname = delgroupName.getText (); option = delgroupOpt.getSelectedItem (). toString ();. setText ("delgroup" + option + "" + groupname) ;}
makeGroupmodCom () {groupname = groupmodName.getText (); option = groupmodOpt.getSelectedItem (). toString (); gmfiled = groupmodField.getText ();. setText ("groupmod" + option + "" + gmfiled + "" +
groupname);}
makeGpasswdCom () {groupname = gpasswdName.getText (); option = gpasswdOpt.getSelectedItem (). toString (); username = gpasswdName1.getText ();. setText (("gpasswd" + option + "" + username + "" +
groupname));}
/*
* Формування тексту команди chmod
*/makeChmodCom () {
String pathfile = chmodPathfile.getText (); user = chmodUsers.getSelectedItem (). toString (); permissions = chmodPerms.getSelectedItem (). toString (); options = chmodOptions.getSelectedItem (). toString ();. setText ("chmod" + options + "" + user + permissions + "
"+ pathfile);}
/*
* Формування тексту команди chown
*/makeChownCom () {
String temp = ""; command_text = ""; pathfile = chownPathFile.getText (); user = chownUser.getText (); group = chownGroup.getText (); options = chownOptions . getSelectedItem (). toString (); (! group.isEmpty ()) = user + ":" + group; = user; _text = "chown" + options + "" + temp + " "+ pathfile;. setText (command_text);}
/*
* Формування тексту команди umask
*/makeUmaskCom () {mask = umaskMask.getText ();. setText ("umask" + mask);}
/*
* Створення і формування sh-файлу
*/makeSh (String filename, String [] command) throws IOException {file = new File ("part1 /" + filename); (file.exists ()) {. delete () ;} (Writer output = new BufferedWriter (new FileWriter (file))) {. write ("#!/bin/bash");. write (" n"); (int i = 0; i < command.length; i + +). write ("su - command =" + '"' + command [i] + '"');. write (" n");. write (" sleep 5 ");
output.close ();}}
/*
* Створення і формування sh-файлу з командою umask
*/makeUmaskSh (String username, String mask) throws IOException {fil...