LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-04-2011, 09:08 AM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 289

Rep: Reputation: 34
File permissions not set through chmod


Hi,
I had created a file under a directory & set the permissions through chmod command but when I create another file under this directory, I get the default permissions.

Is this due to umask or can I set the file permissions through chmod under a directory.

Thanks
 
Old 01-04-2011, 09:29 AM   #2
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
I think what you're in need of is called an "Access Control List" or 'ACL'.
 
Old 01-04-2011, 09:34 AM   #3
Rul
LQ Newbie
 
Registered: Jan 2009
Distribution: Debian
Posts: 10

Rep: Reputation: 1
This is an umask thing. I'm not sure if you can attach a custom permission configuration to a specific directory, but I can tell you that the files that you create don't inherit the permissions of its father directory.

Cheers.
 
Old 01-04-2011, 09:43 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by Rul View Post
... I can tell you that the files that you create don't inherit the permissions of its father directory...
This is true, with Linux it is not the same as in Windows or NTFS-filesystem respectively where you can configure that permissions are being inherited.

Please note that the correct word is parent-directory instead of fatherdirectory, though everyone will understand this, one would better use the correct word when googling for more information.

Markus
 
Old 01-04-2011, 10:46 AM   #5
Rul
LQ Newbie
 
Registered: Jan 2009
Distribution: Debian
Posts: 10

Rep: Reputation: 1
Thanks for the note, markush. I'm not a native english speaker.

Cheers.
 
Old 01-09-2011, 10:26 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 289

Original Poster
Rep: Reputation: 34
Thanks friends the solution is umask value need to changed which is kept default.
 
  


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 revert the permissions set on chmod as a root user prashsharma Linux - Security 2 01-05-2009 10:29 PM
File permissions on shared folders: a problem for chmod, chown dedeco Linux - Security 1 07-25-2008 10:15 PM
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
File Permissions, CHMOD problems, image included. DeathGoth Programming 16 10-05-2004 09:51 PM
chmod and file permissions help qages Linux - General 5 01-27-2003 06:08 AM


All times are GMT -5. The time now is 04:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration