如何在Unix中默认创建具有777权限的文件? [英] How to create a file with 777 permissions as default in unix ?

查看:241
本文介绍了如何在Unix中默认创建具有777权限的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Unix中默认创建具有777权限的文件?

How to create a file with 777 permissions as default in unix ?

推荐答案

,您应该将umask设置为该值.老实说,您可能已经用谷歌搜索了.它是posix的东西,因此它应该在Unix或Linux或什至在NT posix环境中也能很好地工作. (您的标题为Unix,而您的标签为Linux 表示没有Unix标签)
you should set umask to that value. To be honest, you could have googled that. It''s a posix thing so it should work equally well in Unix or Linux, or even in the NT posix environment. (your title says Unix, and your tag says Linux strike that, there is no Unix tag)


这篇关于如何在Unix中默认创建具有777权限的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆