Ubuntu AddUser && Set SMB

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.