ubuntu adduser && set smb
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu adduser && set smb相关的知识,希望对你有一定的参考价值。
1) sudo apt-get install gedit samba
2) sudo groupadd dev
[email protected]:~/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
以上是关于ubuntu adduser && set smb的主要内容,如果未能解决你的问题,请参考以下文章