Samba plan of a Company

Source: Internet
Author: User
A company's samba plan-Linux Enterprise Application-Linux server application information. The following is a detailed description. The following is a group of Shanghai regional companies in Kazakhstan.
28 people in Kazakhstan
Zhou is the leader of 10 technical personnel (jishu)
Wang, leader of 10 business personnel (yewu)
3 supervisors (zhuguan)
2 Finance Personnel (caiwu)
One general manager (assault inspection materials)
2 Regional Managers
Prerequisites:
The company has all internal employee accounts on linux servers, which can be enabled only when necessary, except for managers.
Requirements:
1. Use samba in linux as a file server, so that all managers can view finance.
2. The supervisor can view the business and technical information, but cannot modify the information.
3. Technical Team lead can update technical documents.
4. in the public area, each group leader can upload the creation documents and report plans for the manager to view and download. And contains the Software Directory
Analysis:

1. The manager has the permission to view the finance.
2. The supervisor has the permission to view technologies and business groups.
3. The team leader has the permission to modify the starting group. Other team members do not
4. public is the public directory of managers and team leaders.
5. Create five directories, jishu, yewu, zhuguan, caiwu, and public (public zone)
6. Establish 28 users (all managers belong to the mobile office, so no system users are assigned.

Step 1
Create a home directory group



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080226111503.png'); ">



Step 2
Create users respectively (yz indicates the business leader)



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080226111611.png'); ">


Jz indicates the technical team lead



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080226111658.png'); ">



Step 3:
Create a user in the Supervisor Group

[Img = 500,65] http://blogimg.chinaunix.net/blog/upfile2/080227122302.png#/img]


Step 4:

View the Created directory and assign sub-permissions to the directory



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080227122354.png'); ">


Step 5:

Vi/etc/samba/smb. conf

Add the preceding directory and Set permissions (the preceding settings are omitted)

[Img = 500,387] http://blogimg.chinaunix.net/blog/upfile2/080227122436.png#/img]


[Img = 500,225] http://blogimg.chinaunix.net/blog/upfile2/080227122512.png#/img]



Step 6:
Use testpram to test and verify the smb. conf syntax

[Img = 500,198] http://blogimg.chinaunix.net/blog/upfile2/080227122602.png#/img]




Step 7:

Service smb restart Service

[Img = 533,92] http://blogimg.chinaunix.net/blog/upfile2/080227122650.png#/img]



Step 8:
Add a member of the supervisor group to become a samba user

[Img = 500,321] http://blogimg.chinaunix.net/blog/upfile2/080227122804.png#/img]


Step 9:

Add a business group to a samba user


[Img = 535,242] http://blogimg.chinaunix.net/blog/upfile2/080227122954.png#/img]




Step 10:

What about building a ceo group?

Among them,/bin/nologin means no shell is allocated, because the ceo said that the user is not retained on the linux server.

[Img = 500,84] http://blogimg.chinaunix.net/blog/upfile2/080227123054.png#/img]


Step 11:

View its shared resources

[Img = 518,398] http://blogimg.chinaunix.net/blog/upfile2/080227123153.png#/img]



Step 12:

After logging on to public with ceoz, use mkdir to create a directory, prompting that the directory is not successful ,???????????

[Img = 519,100] http://blogimg.chinaunix.net/blog/upfile2/080227123242.png#/img]


Step 13:

View the permissions and subordination of the public directory and change

[Img = 500,191] http://blogimg.chinaunix.net/blog/upfile2/080227123332.png#/img]


Step 14:

After logging on to the public directory again, run mkdir welcome to view the directory by using dir. The welcome directory is displayed.

[Img = 515,193] http://blogimg.chinaunix.net/blog/upfile2/080227123405.png#/img]


Okay. This is the simple samba server.

My personal abilities are limited. Please advise me if you have any shortcomings.


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.