ClusterStorage-5-配置ACLs与Quotas之设置ACLs
0.实验前的环境检查与配置
[student@workstation ~]$ lab acls setup
1.配置挂载
yum -y install glusterfs-fuse安装软件。 mkdir /mnt/groupdata创建挂载目录。echo "servera:/groupdata /mnt/groupdata glusterfs _netdev,acl 0 0" >> /etc/fstab将挂载信息写入配置文件。tail -1 /etc/fstab查看配置文件。mount /mnt/groupdata进行挂载。mount | grep groupdata确认挂载。
[root@workstation ~]# yum -y install glusterfs-fuse
Loaded plugins: langpacks, search-disabled-repos
rhel_dvd | 4.1 kB 00:00:00
Package glusterfs-fuse-3.7.1-16.el7.x86_64 already installed and latest version
Nothing to do
[root@workstation ~]# mkdir /mnt/groupdata
[root@workstation ~]# echo "servera:/groupdata /mnt/groupdata glusterfs _netdev,acl 0 0" >> /etc/fstab
[root@workstation ~]# tail -1 /etc/fstab
servera:/groupdata /mnt/groupdata glusterfs _netdev,acl 0 0
[root@workstation ~]# mount /mnt/groupdata
[root@workstation ~]# mount | grep groupdata
servera:/groupdata on /mnt/groupdata type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,allow_other,max_read=131072)
2.配置权限
mkdir /mnt/groupdata/admindocs创建子目录。chgrp admins /mnt/groupdata/admindocs设置属组。chmod 2770 /mnt/groupdata/admindocs设置权限。ll -d /mnt/groupdata/admindocs进行确认。
[root@workstation ~]# mkdir /mnt/groupdata/admindocs
[root@workstation ~]# chgrp admins /mnt/groupdata/admindocs
[root@workstation ~]# chmod 2770 /mnt/groupdata/admindocs
[root@workstation ~]# ll -d /mnt/groupdata/admindocs
drwxrws---. 2 root admins 12 Jan 26 22:51 /mnt/groupdata/admindocs
3.配置ACL
setfacl -R -m g:admins:rwX /mnt/groupdata/admindocs设置文件acl。setfacl -R -m d:g:admins:rwX /mnt/groupdata/admindocs设置目录acl。getfacl /mnt/groupdata/admindocs | grep admins查看属组的acl。
[root@workstation ~]# setfacl -R -m g:admins:rwX /mnt/groupdata/admindocs
[root@workstation ~]# setfacl -R -m d:g:admins:rwX /mnt/groupdata/admindocs
[root@workstation ~]# getfacl /mnt/groupdata/admindocs | grep admins
getfacl: Removing leading '/' from absolute path names
# group: admins
group:admins:rwx
default:group:admins:rwx
4.setfacl -R -m g:managers:rX /mnt/groupdata/admindocs设置文件acl。setfacl -R -m d:g:managers:rX /mnt/groupdata/admindocs设置目录acl。getfacl /mnt/groupdata/admindocs | grep managers查看属组的acl。
[root@workstation ~]# setfacl -R -m g:managers:rX /mnt/groupdata/admindocs
[root@workstation ~]# setfacl -R -m d:g:managers:rX /mnt/groupdata/admindocs
[root@workstation ~]# getfacl /mnt/groupdata/admindocs | grep managers
getfacl: Removing leading '/' from absolute path names
group:managers:r-x
default:group:managers:r-x
5.任务测试
lab acls grade进行测评。主要包括:挂载目录,挂载配置,挂载子目录授权,挂载子目录的ACL等。
[student@workstation ~]$ lab acls grade
Grading the student's work:
· Testing if all hosts are reachable.......................... SUCCESS
· Checking for current mount on /mnt/groupdata on workstation. PASS
· Checking if /mnt/groupdata on workstation is in use......... PASS
· Unmounting /mnt/groupdata................................... PASS
· Mounting /mnt/groupdata..................................... PASS
· Checking for current mount on /mnt/groupdata on workstation. PASS
· Checking mount options for /mnt/groupdata in /etc/fstab..... PASS
· Checking if /mnt/groupdata/admindocs exists as a directory.. PASS
· Checking owner on /mnt/groupdata/admindocs on workstation... PASS
· Checking permissions on /mnt/groupdata/admindocs............ PASS
· Checking ACLs on /mnt/groupdata/admindocs................... PASS
Overall lab grade.............................................. PASS
ClusterStorage-5-配置ACLs与Quotas之设置ACLs相关推荐
- mysql服务器端按照显示无权限安装_菜鸟完整配置服务器 流程及权限设置
本人是一菜鸟,虽然刚刚接触网络,但是有点痴迷.最近因为网络环境允许自己搞台服务器,就选了WIN2003搭建服务器. 原以为网上教程还有落伍者的教程多的是,以为简单的很!哎,谁知道教程虽多,不是缺这个就 ...
- 如何配置php的ip地址吗,如何手动配置IP地址及防火墙设置
手动配置电脑IP地址和设置防火墙是很常用的设置.下面是学习啦小编跟大家分享的是如何手动配置IP地址及防火墙设置,欢迎大家来阅读学习. 手动配置IP地址及防火墙设置的方法 方法/步骤 在桌面 右键网络连 ...
- 大数据WEB阶段 Servlet配置优先级 , Spring容器设置对静态资源放行
Servlet配置优先级 , Spring容器设置对静态资源放行 零.目录 servlet优先级 Spring容器对静态资源放行 一.servlet优先级 web.xml时整个web应用的核心配置文件 ...
- pycharm配置连接服务器+python环境设置
[pycharm配置连接服务器+python环境设置] 简要介绍 1. configuration 2. Deployment 3. SSH Configuration 配置 4. Mapping 5 ...
- TStack运维笔记(04)- 配置VPC网络及告警设置
文章目录 01 VPC配置 1.1 说明 1.2 操作步骤 02 告警设置 2.1 说明 2.2 操作步骤 01 VPC配置 1.1 说明 用户可以通过创建 虚拟私有网络(VPC) 为云主机构建隔离的 ...
- Centos 安装FTP配置目录权限,iptables设置ftp服务
Centos 安装FTP配置目录权限,iptables设置ftp服务 2012-07-06 admin Leave a comment Go to comments CentOS 安装vsftpd,设 ...
- VSCode配置 GitHub的Gist 同步设置和插件(简明教程)
写在前面: 在本地电脑上的vscode上配置了很全面的扩展(插件),由于后期可能要在不同的电脑设备上操作,所以希望可以将本地vscode上的扩展进行同步. 在网上搜了很多关于vscode同步扩展(插件 ...
- TOMCAT6.0配置(虚拟目录的设置+多域名绑定)
TOMCAT6.0配置(虚拟目录的设置+多域名绑定) Tomcat6.0配置(虚拟目录的设置+多域名绑定) Tomcat6.0配置(虚拟目录的设置+多域名绑定) 优点:tomcat6.0可以自动更新类 ...
- Django models数据库配置以及多数据库调用设置
今天来说说web框架Django怎么配置使用数据库,也就是传说中MVC(Model View Controller)中的M,Model(模型). 简单介绍一下Django中的MVC: 模型(model ...
最新文章
- 办公电脑选购方案指南
- TCP/IP模型层次结构
- 关于博客园,编辑文章的小意见
- IQmath中文手册
- 使用LitePal操作数据库(CRUD增删改查) 项目已上传GitHub
- python主题壁纸_Python教你如何下载你喜欢的桌面壁纸
- How to uninstall git
- 【转】(六)unity4.6Ugui中文教程文档-------概要-UGUI Animation Integration
- 循环造数据_项目管理数据与信息--DIKW模型
- 关于《高性能JavaScript》制表(Memoization)笔记
- html section 布局,section标签的用法
- ASP.NET中的Cookie对象
- 测试面试题集-MySQL数据库灵魂拷问加强版
- xp 启动linux系统安装,Linux网络安装Centos/windows 2003/xp 并且启动winpe系统
- ★深度优先搜索+解空间树+递归,三合一详解
- gitlab项目的备份与迁移
- 阿里云实人认证有什么特点
- Deepin Linux系统安装及显示器配置教程(可竖屏)
- 总线(四)Modbus总线 协议
- DATEADD的用法