Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've set default ACLs on one of my folders, say, "test". The default ACL says that user "testuser" have rwx permissions on test (and therefore its subfolders).
Although "testuser" has rwx permissions on folder "test", it is now allowd to delete files and folders found here. BUT, "testuser" is allowd to delete files and folders found under subdirectories of "test", for example "test/folder1".
So in other words, "testuser" is allowed to delete files under subdirecories of "test", but not directly under test itself. To me this seems very odd.
Can anyone explain why this is happening? How can I make sure that "testuser" has full permissions starting from folder "test"?
Before creating the files and folders under "test" I set the default ACL for "test" to "user:testuser:rwx".
To my best knowledge, this should enable "testuser" to delete files and folders under "test". But "testuser" is only allowed to delete files and folders starting at level 2 i.e. from "folder1".
You will need to show the permissions and acl's for each subdirectory and file.
To delete a file, a user needs write permissions on the containing directory. Creating or deleting a file writes to the directory. If the sticky bit is set, then only the owner can delete a file. This allows multiple users to create files in /tmp but only the owner can create the file.
Don't assume that files and directories inherent the acl's of the parent directory.
I think I got things working now. Turn out that in addition to setting the default ACLs for the folder "test", I had to set similar ACL attributes to the folder itself. Thought this was implied when setting the default ACL on the folder, but I guess it wasn't.