After several days of hard work, I finally got it done.
Source: Internet
Author: User
After several days of hard work, I finally completed the Linux Enterprise Application-Linux server application information. The following is a detailed description. Customer requirements:
1. Provide the file server,
2. The windows system is required to be able to access the service.
3. Each department can only view its own folder, but not the folders of other departments.
4. Employees of each department have the permission to read and write Department folders.
5. disk quotas are required for folders in each department.
Implementation steps:
Step 1: Install the/HOME directory in an independent partition and implement Disk Quota for it
Step 2: create a user with the department name and set the password
Step 3: pay for each user Disk Quota created by department name
Step 4: Install the samba rpm package
Step 5: edit/ETC/SAMBA/SMB. CONF file so that it can be accessed by user name/Password
Step 6: Send the user folder under HOME to the user and set the permission to 700
Step 7: edit/etc/samba/smbusers to map Department employees to Department users.
In this way, when a WIN user accesses the file server in a network neighbor, the user name and password authentication are required. Different users will see different shared content, that is, users of different departments can only see folders of their own departments.
Specific implementation steps:
1. Create a USER named "USER"
Useradd chaigou
Useradd xiaoshou
Useradd shenchan
Useradd bangongshi
Passwd chaigou
Passwd xiaoshou
Passwd shenchan
Passwd bangongshi
3. Install the SAMBA package
Rpm-ivh -- aid samba *. rpm
Vi/etc/samba/smb. conf
Workgroup = workgroup
Netbios name = server
Server string = files server
Security = user
Encrypt passwords = yes
Interfaces = 192.168.0.0/24
[Chaigou]
Path =/mnt/sdb1/chaigou
Public = no
Valid users = chaigou
Browseable = yes
Writable = yes
Hosts allow = 192.168.0.0 255.255.255.255.240
Hosts deny = all
[Xiaoshou]
Path =/mnt/sdb1/xiaoshou
Public = no
Valid users = xiaoshou
Browseable = yes
Writable = yes
Hosts allow = 192.168.0.16 255.255.255.255.240
Hosts deny = all
4. Send folders of these departments to their respective departments.
Chown chaigou/mnt/sdb1/chaigou
Chown chaigou/mnt/sdb1/xiaoshou
Chmod 700/mnt/sdb1/chaigou
Chmod 700/mnt/sdb1/chaigou
5. Create an SMB User
Smbpasswd-a chaigou
6. Create a department user ing
Vi/etc/samba/smbusers
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.