پی سی سیتی

پی سی سیتی (http://p30city.net/index.php)
-   لینوکس - linux (http://p30city.net/forumdisplay.php?f=117)
-   -   Setup the default file permission (http://p30city.net/showthread.php?t=31166)

آموزش لینوکس AP 02-28-2011 07:32 PM

Setup the default file permission
 
SETUP THE DEFAULT FILE PERMISSION
مقاله آموزشی لینوکس


Sometimes, if we don't change the default permission in linux after we make a new file, that's can't be edited cause the file default perimission for the file is read only.I think it's not so comfort if each we make new file we should change the permission first if we want to edit that. We can use umask command to setup the default permission for the file that have been created/make. The Syntax is like this :
lambanx@fresh-IDEA # umask [permission]

Example :
I want to setting the default permission for the file that have been made to full access for user,group, and other
lambanx@fresh-IDEA # umask 777


the 7 number is represent full access permission for the file, why the there are three 7 number above? cause i would like to setting permission for user,group, and other.https://blogger.googleusercontent.co...d.blogspot.com
http://feedads.g.doubleclick.net/~a/...mq0oX6tG4/0/di
http://feedads.g.doubleclick.net/~a/...mq0oX6tG4/1/di

http://feeds.feedburner.com/~r/blogs...~4/Ljz_9Bf3QP0
Sometimes, if we don't change the default permission in linux after we make a new file, that's can't be edited cause the file default perimission for the file is read only.I think it's not so comfort if each we make new file we should change the permission first if we want to edit that. We can use umask command to setup the default permission for the file that have been created/make. The Syntax is like this :
lambanx@fresh-IDEA # umask [permission]

Example :
I want to setting the default permission for the file that have been made to full access for user,group, and other
lambanx@fresh-IDEA # umask 777


the 7 number is represent full access permission for the file, why the there are three 7 number above? cause i would like to setting permission for user,group, and other.https://blogger.googleusercontent.co...d.blogspot.com
http://feedads.g.doubleclick.net/~a/...mq0oX6tG4/0/di
http://feedads.g.doubleclick.net/~a/...mq0oX6tG4/1/di

http://feeds.feedburner.com/~r/blogs...~4/Ljz_9Bf3QP0


اکنون ساعت 12:26 AM برپایه ساعت جهانی (GMT - گرینویچ) +3.5 می باشد.

Powered by vBulletin® Version 3.8.4 Copyright , Jelsoft Enterprices مدیریت توسط کورش نعلینی
استفاده از مطالب پی سی سیتی بدون ذکر منبع هم پیگرد قانونی ندارد!! (این دیگه به انصاف خودتونه !!)
(اگر مطلبی از شما در سایت ما بدون ذکر نامتان استفاده شده مارا خبر کنید تا آنرا اصلاح کنیم)