`

chown command

阅读更多
How do I use chmod and chown command under Linux?

A. Use chown command to change file owner and group information. Use chmod command to change file access permissions such as read, write etc.
chown command

chown command changes the user and/or group ownership of each given file.

For example following command will setup user and group ownership to root user only for /backup directory:
# chown root:root /backup
Set user user ownership to root user and allow any member of ftp group to access file.txt (provided that they have sufficient read/write rights).
# chown root:ftp /home/data/file.txt
分享到:
评论

相关推荐

    Linux命令搜索工具linux-command.zip

    diff、diffstat、file、find、git、gitview、ln、locate、lsattr、mattrib、mc、mcopy、mdel、mdir、mktemp、mmove、mread、mren、mshowfat、...、cat、chattr、chgrp、chmod、chown、cksum、cmp、cp、cut、indent...

    chowm命令介绍

    linux chown命令介绍,还有其他命令介绍,有需要call me

    (重要)AIX command 使用总结.txt

    # chown root:security passwd # reboot //查看内存信息两部曲: # lsdev -C | grep mem mem0 Available 00-00 Memory # lsattr -El mem0 size 1024 Total amount of physical memory in Mbytes False goodsize 1024...

    Utilities for Windows NT 源码

    Type 'chown' on the command line for a short instruction. More information can be found in the README file. Download Version 1.1 of chown.zip (approx. 35k). There is also a GUI frontend written by ...

    nagios监控插件开发步骤

    chown -R nagios.nagios ./check_update chmod +x ./check_update 3、添加服务器配置文件(目录/usr/local/nagios/etc/objects)localhost.cfg 配置service define service{ host_name linux测试 service_...

    一键搭建个人博客系统脚本,基于完全编译lnmp(linux,nginx,mysql,php)搭建wordpress博客系统

    chown -R nginx.nginx ./​重启nginx服务# systemctl restart nginx​登录数据库# mysql -uroot -p123456mysql: [Warning] Using a password on the command line interface can be insecure.Welcome to the MySQL ...

    jre-7u5-linux-i586.tar.gz

    chown -R root\: /usr/local/jre1.7.0_05/ java -version java version “1.7.0_05″ Java(TM) SE Runtime Environment (build 1.7.0_05-b05) Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode) 运行上面...

    Lilukext138.zip

    sudo chown -R root:wheel /Library/Extensions/Lilu.kext sudo touch /Library/Extensions sudo kextcache -update-volume / Wait for the last command to complete. 7) Reboot. If all goes well, your ...

    Linux 主机实现对网卡流量的监控.txt

    4、 nrpe.cfg文件增加监控command 5、 nagios服务器配置service.cfg添加监控项 具体实施: 1.安装修改启动snmpd服务 安装: # yum -y install net-snmp* 修改snmpd.conf # vim /etc/snmp/snmpd.conf ...

    zabbix实现邮件告警的方法

    根据网络教程实现。zabbix3.4,使用脚本和sendEmail。 1.下载并解压缩sendEmail到/usr/local/bin下面...chown zabbix:zabbix /usr/local/bin/sendEmail 2.进行发邮件测试。 /usr/local/bin/sendEmail -f xxxx@163.c

    linc-sony-demo

    概述 用于托管 sony 演示产品页面的linc-sony-demo项目 安装 安装 使用这些安装 git 并设置 github 启动一个新终端并运行以下命令: # Install gulp ...# Run the app using the default command gul

    check_supervisord

    check_supervisord 一个用 Python 编写的 Nagios NRPE 插件,用于监控 Supervisord 服务器和... 将命令添加到nrpe.cfg : command[check_supervisord]=/usr/bin/sudo /usr/local/nagios/libexec/check_supervisord.py

    Linux常用的命令。。。。。

    command1| command2 command1的输出是command2的输入 DNS全球通用的: 8.8.8.8 DHCP :动态分配IP地址 255.255.255 网络段 0 主机 ifconfig –a 查看所有网卡 mask 子网掩码,分辨网络地址,与主机地址 改IP地址: /...

    permtester

    python3 -m permtester < command> 目的 单元测试的文件权限/所有权。 有点 ;-) 软件包中的工具检查文件的权限和所有权是否符合期望。 与权限/所有权相关的问题非常普遍,但是调试起来很繁琐。 此工具旨在使其变得...

    Linux FTP服务配置

     When enabled, a special FTP command known as "async ABOR" will be enabled. Only ill advised FTP clients will use this feature.Addtionally, this feature is awkward to handle, so it is dis-abled by ...

    r40_tinav2.1_最终验证通过_使用CB-S来验证OV5640有横条纹fpscamera+SPI2.0成功_20171114_1443没有外层目录.7z

    //image name: xxxx (set by usered through command) //exif info name: xxxx.exif if(cap->cmd == SAVE_IMAGE ) { ret = 0;//getExifInfo(&(cap->picture.exif)); //get target frame exif info successfully...

    WINCVS和CVSNT安装包

    更改【CVSRoot】的拥有者:cvs chown administrator 回车,OK,完成。 查看【CVSRoot】的权限状态:cvs lsacl 回车,OK 3)模块的配置:在【CVSRoot】模块目录下有一个modules文件,打开编辑 CVSRoot CVSRoot ...

    dle:目录列表编辑 - 在您最喜欢的编辑器中编辑文件结构!

    您可以使用您喜欢的文本编辑器复制、移动、重命名、chmod、chown 或删除单个文件或目录。 BETA 产品,使用风险自负,使用--simulate以确保,始终有备份! 要求您将需要一个带有 Ruby (>= 1.9.3) 安装的 UNIX 系统,...

    UNIX环境高级编程(第二版,英文版)

    chown, fchown, and lchown Functions Section 4.12. File Size Section 4.13. File Truncation Section 4.14. File Systems Section 4.15. link, unlink, remove, and rename Functions ...

    UNIX环境高级编程英文第三版+源码

    4.11 chown, fchown, fchownat, and lchown Functions 109 4.12 File Size 111 4.13 File Tr uncation 112 4.14 File Systems 113 4.15 link, linkat, unlink, unlinkat, and remove Functions 116 4.16 rename and ...

Global site tag (gtag.js) - Google Analytics