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 used to know in windows that a directory can inherit permission from its parent directory, same goes to files created inside the directory, that doesn't seem to work quite so in linux ext2 file system.
I'm working on mandrake 10.0 & doing this as root
i created in my /tmp [drwxrwxrwxt] a directory named stk
it got [drwxr-xr-x] why is that ?
where did the sticky [##########t] go ?
what does the sticky even mean to a directory ?
can i give 2 users different permission like in winz ?
why when i create a dir inside the stk dir, say <t> & do chmod 1777 /etc/stk/t it get [drwxrwxrwt] ? i mean where is the the x[ExECUTE] of the all group went ?
the umask settings determines what a newly created file gets for its permissions i do believe
the sticky bit for directory's was something like only suers that created the file can delete it, something like that i think
you can only give 1 user a permission setting, 1 group a permission setting and everyone a permission setting..... thats it, nothing else, unless you want to use rasbac (i think thats its name), it comes with security (at least role based access control thingy does), you can use that to create more complex permission settings if you want to take the time to set it up
as for that last one, the "t" probably hide it (thats why i don't exactly like ls, as it displays permissions in long letters, and not nice numbers that can be more accurate at times)
From `info coreutils`:
The permissions listed are similar to symbolic mode specifications
(*note Symbolic Modes::). But `ls' combines multiple bits into the
third character of each set of permissions as follows:
If the setuid or setgid bit and the corresponding executable
bit are both set.
If the setuid or setgid bit is set but the corresponding
executable bit is not set.
If the sticky bit and the other-executable bit are both set.
If the sticky bit is set but the other-executable bit is not
If the executable bit is set and none of the above apply.
by doing as said above (my previous post) we give every one the permission to write & delete their own files in the folder
the sticky bit enforces that i will only temper with my own files, meaning that i can not read/write to files i'm not their owner, right ?