标签:
1) sudo apt-get install gedit samba
2) sudo groupadd dev
root@iwgame:~/test# cat batch_adduser
#! /bin/bash
set -x
for i in `seq 2 9`;
do
u_name="public$i"
if [ -n $u_name ]
then
useradd -d "/home/$u_name" -m $u_name -g dev
echo $u_name:$u_name | chpasswd
echo "Done"
fi
done
3) sudo visudo : /etc/sudoers
%dev ALL=(ALL) ALL
public2 ALL =(ALL) ALL
4) cat /etc/apt/source.list
###### Ubuntu Main Repos
deb http://ftp.sjtu.edu.cn/ubuntu/ precise main restricted universe multiverse
###### Ubuntu Update Repos
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
标签:
原文地址:http://www.cnblogs.com/nancy0517/p/5292367.html