#!/bin/bash
# addclass ga 1 50 username ga0101-ga0150
groupadd users 2>> /dev/null
if [ $? -eq 0 ]
then
echo "Users is created seccussfully !"
else
echo "Users is exist,you needn't created !"
fi
grade=$1
num_class=`expr $2 + 0`
if (test $num_class -le 9)
then
num_class="0"$num_class
fi
max_stid=`expr $3 + 0`
num_stid=1
if [ ! -x /home/student ]
then
mkdir /home/student
fi
if [ ! -x /home/student/$1$num_class ]
then
mkdir /home/student/$1$num_class
fi
while (test $num_stid -le $max_stid)
do
if (test $num_stid -le 9)
then
num_stid="0"$num_stid
fi
user_name=$grade$num_class$num_stid
echo $user_name":"$user_name >> user_pwlist
adduser -g users -d /home/student/$1$num_class/$user_name $user_name
#setquota -u $user_name 10240 20480 0 0 /home
chmod 755 /home/student/$1$num_class/$user_name
num_stid=`expr $num_stid + 1`
done
chpasswd < user_pwlist
pwconv
/bin/rm -f user_pwlist
相关推荐
* Add More Users是Splunk系统中的一个功能,允许用户添加更多的用户。 * 用户可以通过Splunk Web界面或命令行界面来添加用户。 九、Start Searching * Start Searching是Splunk系统中的一个功能,允许用户开始...
Do not try to add more users, otherwise your main account that is used by default (Administrator) will become the new account and after logging in, you will not have any desktop theme (not even ...
2. **Network Users**: Network users can imagine ways to make their work more productive if only Outlook would do certain things. Programming can enable them to implement these enhancements themselves....
- **Software Repositories**: Explanation of Fedora’s official repositories and how to add third-party repositories. - **Package Management**: Using tools like `yum` (or `dnf` in newer versions) to ...
- FIX: When the curve contain more then one figure and they were all unconfined and curve have alternative brush then whole flex-object bounding rectangle was filed. - FIX: The MaskColor property ...
navigate around the desktop, use common software, add more programs and fix any problems you may encounter. It's based around a slightly older version of Ubuntu Linux so there may be some minor ...
Devops, the combination of software development with... Once you have these core concepts down, you can add more complicated tools, and indeed this is touched in more advanced features in later chapters.
users simply need to double-click the installer to automatically install the add-in. After successful installation, the **CodeProtector** menu item will appear under the Tools menu in Visual Studio. ...
You’ll learn how to use the new Microsoft Graph API to integrate users’ mail, calendars, contacts, groups, files, folders, and more. Leveraging Microsoft APIs at the REST level, you’ll discover ...
9 to add more common sub-volume sizes and the number of custom sub-volumes to six, giving the user more choice; 10 New well pressure the main interface title bar text display switching function; 11 ...
With this new version, users can easily add a simple shape in the main interface of Foxit PDF Editor without having to enter into the graphics editor. 4. Removing all evaluation marks at once ...
It gives you the power to quickly add unlimited reporting to your programs without designing a single report! When you combine the ExpressPrinting System with the ExpressQuantumGrid or ...
* Avoid common coding and maintenance headaches as small websites add more pages, more code, and more programmers * Get comprehensive solutions for refining HTML, CSS, JavaScript, PHP, and Ajax for ...
If you’re one of the millions of users joining Twitter to connect to friends, family, and interest groups; or to follow the conversation and find out what’s happening beyond your doorstep, then this...
As capacity and performance needs increase, you can add more HPE OmniStack hosts without disruption to users. This network of hosts is called an HPE SimpliVity federation. Once you deploy HPE ...
Add visuals to your documentation What if all your documentation was quick to create, simple to update, and easy for users to follow? With Snagit, it only takes a few clicks to keep graphics current. ...
The fluid canvas rotation feature allows users to manipulate images in a more flexible manner, especially when dealing with large files. The image auto-blending function streamlines the process of ...
then ...<P> For more information the Security Add-In please click here or read the help file that is distributed with the wizards. <P> 2) Global Error Handler <BR> Error handling is a necessary evil ...