LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-09-2009, 05:16 AM   #1
linux.queries.help
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Help me to set Permission


HI Friends,

I am Log in as a root user.

I have Directory /root/tejas. It's by default permission is 755. (drwxr-xr-x)

If I am creating any file its get permission -rw-r--r-- (Default). But i want that if i create any file within this directory only (/root/tejas) then default permission on all file should be -rwxr-xr-x instead of -rw-r--r--.

We can set it by chmod -R but i have to do this all the time whenever i create new file. So is that possible to set -rwxr-xr-x for file as a default permision ? is this possible ?

I tried to set setfacl also but its also not working.

Please Help me
 
Old 04-09-2009, 06:36 AM   #2
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
Try "man umask"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Set nobody Permission jamesnkk Linux - Newbie 13 08-11-2008 11:34 PM
how to set permission to this file? ZAMO Linux - Server 6 04-02-2008 03:09 AM
unable to set permission sunlinux Linux - General 4 02-18-2007 11:00 PM
Cannot set write permission naveedbs Linux - Newbie 2 09-13-2003 10:54 AM
how to set quota, a/c and permission gogo Linux - General 1 10-09-2001 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration